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:
11
index.html
11
index.html
@@ -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>
|
||||||
<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>
|
||||||
// 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() )
|
||||||
@@ -61,4 +68,4 @@
|
|||||||
changeCSS( defaultTheme );
|
changeCSS( defaultTheme );
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user