-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubstrates-2026.html
More file actions
32 lines (29 loc) · 1.23 KB
/
substrates-2026.html
File metadata and controls
32 lines (29 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<script src="https://cdn.jsdelivr.net/npm/marked@18.0.2/lib/marked.umd.min.js"></script>
<!-- script src="https://cdn.jsdelivr.net/npm/marked-footnote@1.4.0/dist/index.umd.min.js"></script -->
<script src="https://cdn.jsdelivr.net/npm/@fsegurai/marked-extended-footnote@17.0.0/dist/index.umd.js"></script>
<link href=" https://cdn.jsdelivr.net/npm/@fsegurai/marked-extended-footnote@17.0.0/dist/styles/footnote.min.css" rel="stylesheet">
<script src="https://unpkg.com/mermaid@11.9.0/dist/mermaid.min.js"></script>
<script>
mermaid.initialize({ startOnLoad: false })
console.log(markedExtendedFootnote)
fetch('substrates-2026/README.md')
.then(response => response.text())
.then(markdown => {
document.body.innerHTML = new marked.Marked()
.use(markedExtendedFootnote.default({
refMarkers: true, // Show [1] instead of just 1
labelFormat: (id, number) => id,
description: 'References',
}))
.parse(markdown)
mermaid.run({ querySelector: '.mermaid, .language-mermaid' })
})
</script>
<style>
body { width: 60em; }
iframe { overflow: visible; }
/* TODO: BUGGY sometimes keeps highlighting wrong footnote?
*:target { background: yellow; }
*/
</style>