Skip to content

Commit

Permalink
fix(marked): version lock & 4.0 change
Browse files Browse the repository at this point in the history
  • Loading branch information
TasoOneAsia committed Nov 10, 2021
1 parent 2a1cb1f commit 422c588
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions web/assets/markdown_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ marked.setOptions({
})

export const parsedMdTips = LOADSCREEN_TIPS.map(({title, content}) => {
const renderedMarkup = marked(content)
return {title, content: renderedMarkup}
})
const rendered = window.marked.parse(content)
return {title, content: rendered}
})
6 changes: 3 additions & 3 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">

<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@4.0.0/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.3/howler.min.js" integrity="sha512-6+YN/9o9BWrk6wSfGxQGpt3EUK6XeHi6yeHV+TYD2GR0Sj/cggRpXr1BrAQf0as6XslxomMUxXp2vIl+fv0QRA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
<link rel="stylesheet" href="assets/styles.css">
Expand Down Expand Up @@ -68,6 +68,6 @@
</div>
</div>
</div>
<script src="assets/script.js" type="module"></script>
<script defer src="assets/script.js" type="module"></script>
</body>
</html>
</html>

0 comments on commit 422c588

Please sign in to comment.