Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
rsk0315 committed Dec 9, 2023
1 parent 711b037 commit 301e219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hatenablog/js/pseudocode.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ function markup(code, elt) {
out += "\n\\end{aligned}";
}

elt.outerHTML = katex.renderToString(`<div><span class="pseudocode">\\begin{aligned}${out}\\end{aligned}</span></div>`, { macros });
const inner = katex.renderToString(`\\begin{aligned}${out}\\end{aligned}`, { macros });
elt.outerHTML = `<div><span class="pseudocode">${inner}</span></div>`;
}

document.addEventListener('DOMContentLoaded', (() => {
Expand Down

0 comments on commit 301e219

Please sign in to comment.