Skip to content

Commit

Permalink
docs(demo): update demo dependencies to match newer demos
Browse files Browse the repository at this point in the history
  • Loading branch information
Izook committed Apr 12, 2023
1 parent e187fa1 commit e415680
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 27,035 deletions.
6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
<main></main>

<script type="module">
import 'marked/marked.min.js';
import 'prismjs';
import 'https://unpkg.com/marked@latest/marked.min.js';
import 'https://unpkg.com/prismjs@latest/prism.js';
fetch('/demo/demo.md')
.then((response) => response.text())
.then((text) => {
const rawHtml = marked(text);
const rawHtml = marked.parse(text);
document.querySelector('main').innerHTML = rawHtml;
Prism.highlightAll();
});
Expand Down
Loading

0 comments on commit e415680

Please sign in to comment.