We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ffefe2 + 97cfbd0 commit 0af0243Copy full SHA for 0af0243
nbs/_quarto.yml
@@ -14,6 +14,7 @@ format:
14
- cosmo
15
- custom.scss
16
css: styles.css
17
+ include-after-body: fix-commonmark.html
18
toc: true
19
keep-md: true
20
canonical-url: true
nbs/fix-commonmark.html
@@ -0,0 +1,11 @@
1
+<script type="application/javascript">
2
+// Fix CommonMark link bug where Quarto JS changes index.html.md to .md
3
+document.addEventListener('DOMContentLoaded', function() {
4
+ function fixCommonMarkLinks() {
5
+ document.querySelectorAll('a[data-original-href*="index.html.md"]').forEach(link => {
6
+ if (link.dataset.originalHref) { link.href = link.dataset.originalHref; }
7
+ });
8
+ }
9
+ fixCommonMarkLinks();
10
+});
11
+</script>
0 commit comments