Update index.html (#88)

This commit is contained in:
SynysterZV
2024-03-07 03:36:38 -05:00
committed by GitHub
parent 5c402b7d88
commit 13a7c979ef

View File

@@ -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>