Skip to content

Commit 8c87d5d

Browse files
Add Dot environment
1 parent eaa15c8 commit 8c87d5d

7 files changed

Lines changed: 2706 additions & 8 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.parcel-cache
2+
node_modules

dist/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@
1818
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css">
1919
<script src="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js"></script>
2020

21+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/9.2.2/mermaid.min.js"></script>
22+
<script src="dist/index.js"></script>
23+
2124
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.1/markdown-it.min.js"></script>
2225

26+
2327
<script src="https://edrys-org.github.io/edrys/module/edrys.js"></script>
2428
<script defer src="https://edrys-org.github.io/edrys/module/vendor/alpine.min.js"></script>
2529
<link rel="stylesheet" href="https://edrys-org.github.io/edrys/module/vendor/water.min.css" />
@@ -53,20 +57,28 @@
5357
}
5458

5559
window.md.use(
56-
texmath, {
57-
engine: katex,
58-
delimiters: 'dollars',
59-
katexOptions: {
60-
macros: {
61-
"\\RR": "\\mathbb{R}"
60+
texmath, {
61+
engine: katex,
62+
delimiters: 'dollars',
63+
katexOptions: {
64+
macros: {
65+
"\\RR": "\\mathbb{R}"
66+
}
6267
}
63-
}
64-
});
68+
})
69+
.use(window.markdownItTextualUml)
6570
}
6671

6772
function render(content) {
6873
if (window.md) {
6974
document.body.innerHTML = md.render(content)
75+
76+
setTimeout(() => {
77+
console.warn("loading mermaid")
78+
mermaid.initialize({
79+
startOnLoad: true
80+
})
81+
}, 1000)
7082
}
7183
}
7284

@@ -94,6 +106,7 @@
94106
}
95107
}
96108
});
109+
97110
</script>
98111

99112
<title>Edrys - Markdown-IT module</title>

0 commit comments

Comments
 (0)