Skip to content

Commit

Permalink
Remove mermaid comment that isn't true
Browse files Browse the repository at this point in the history
  • Loading branch information
irskep committed Aug 28, 2024
1 parent f390fac commit c4ef89d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/clientjs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import mermaid from "mermaid";
window.onload = () => {
/* MERMAID */

// It would probably be better to run Mermaid at build time and generate static SVGs,
// but this is a good test of the client-side JS workflow, so this is how it is for
// now.

// Replace all <pre><code class="language-mermaid">...</code></pre> with just <pre class="mermaid"></pre>
[...document.querySelectorAll("pre code.language-mermaid")].map((codeEl) => {
const parent = codeEl.parentElement!;
Expand Down

0 comments on commit c4ef89d

Please sign in to comment.