Skip to content

Commit

Permalink
closes(#285)
Browse files Browse the repository at this point in the history
Co-authored-by: taxmeifyoucan <[email protected]>
  • Loading branch information
vlladin and taxmeifyoucan authored Jun 4, 2024
1 parent 014e80d commit 09266f8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,24 @@
}
</script>

<!-- Footnotes -->
<!-- Taken from https://github.com/sy-records/docsify-footnotes/blob/main/src/index.js and removed the emoji. -->
<script>
const footnotes = function(hook) {
hook.beforeEach(function(markdown) {
if (/\[\^([A-Za-z0-9\-]+)\][^:]/.test(markdown)) {
markdown = markdown
.replace(/\[\^([A-Za-z0-9\-]+)\][^:]/gm, '<sup class="footnote-symbol" id="fn-$1">[\[$1]\](#fnref-$1)</sup>')
.replace(/\[\^([A-Za-z0-9\-]+)\]\: /gm, '<strong class="footnote-reference-symbol" id="fnref-$1">[\[$1\]](#fn-$1)</strong> ');
}
return markdown;
});
};

$docsify = $docsify || {};
$docsify.plugins = [].concat(footnotes, $docsify.plugins || []);
</script>

<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>

<!-- KaTex -->
Expand Down

0 comments on commit 09266f8

Please sign in to comment.