mirror of
https://github.com/Shakil-Shahadat/awesome-piracy.git
synced 2026-06-05 14:53:12 +00:00
Update index.html (#88)
This commit is contained in:
@@ -35,12 +35,19 @@
|
|||||||
|
|
||||||
<!-- JavaScript Library to Convert Markdown into HTML -->
|
<!-- JavaScript Library to Convert Markdown into HTML -->
|
||||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Marked plugin to add heading ID's -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/marked-gfm-heading-id/lib/index.umd.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Basic Settings
|
// Basic Settings
|
||||||
const defaultTheme = 'darkly';
|
const defaultTheme = 'darkly';
|
||||||
const bootswatchVersion = '5.3.1';
|
const bootswatchVersion = '5.3.1';
|
||||||
// Update last one only when https://www.jsdelivr.com/package/npm/bootswatch is updated.
|
// Update last one only when https://www.jsdelivr.com/package/npm/bootswatch is updated.
|
||||||
|
|
||||||
|
// Configure marked.js to use Github heading ID's to allow the Contents list to function
|
||||||
|
marked.use(markedGfmHeadingId.gfmHeadingId())
|
||||||
|
|
||||||
// Get the markdown file, convert to HTML & put inside the main tag
|
// Get the markdown file, convert to HTML & put inside the main tag
|
||||||
fetch( 'https://raw.githubusercontent.com/Shakil-Shahadat/awesome-piracy/main/Readme.md' )
|
fetch( 'https://raw.githubusercontent.com/Shakil-Shahadat/awesome-piracy/main/Readme.md' )
|
||||||
.then( response => response.text() )
|
.then( response => response.text() )
|
||||||
|
|||||||
Reference in New Issue
Block a user