This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff880fc
commit e98617d
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,14 +27,14 @@ | |
</div> | ||
</body> | ||
<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.min.js"></script> | ||
<script src='https://cdn.jsdelivr.net/npm/marked/marked.min.js'></script> | ||
<script src='https://cdn.jsdelivr.net/npm/markdown-it@latest/dist/markdown-it.min.js'></script> | ||
<script src="https://cdn.jsdelivr.net/gh/SomeBottle/[email protected]/othumb.m.js"></script> | ||
<script> | ||
var readmefile = "{[ReadmeFile]}"; | ||
async function renderReadme() { | ||
const resp = await fetch(readmefile) | ||
if (!resp.ok) return | ||
document.querySelector("#readme").innerHTML = window.marked(await resp.text()); | ||
document.querySelector("#readme").innerHTML = window.markdownit().render(await resp.text()); | ||
Prism.highlightAll() | ||
} | ||
|
||
|
@@ -159,9 +159,9 @@ | |
<div class='previewtext markdown-body' id='md'>{[FileContent]}</div> | ||
</div> | ||
</div> | ||
<script src='https://cdn.jsdelivr.net/npm/marked/marked.min.js'></script> | ||
<script src='https://cdn.jsdelivr.net/npm/markdown-it@latest/dist/markdown-it.min.js'></script> | ||
<script> | ||
document.getElementById('md').innerHTML=marked(document.getElementById('md').innerHTML); | ||
document.getElementById('md').innerHTML=window.markdownit().render(document.getElementById('md').innerHTML); | ||
</script> | ||
{{MDPreviewEnd}} | ||
{{CodePreview}} | ||
|