Update index.html

This commit is contained in:
Shakil Shahadat 2024-03-07 14:53:24 +06:00 committed by GitHub
parent 13a7c979ef
commit 707ab57cc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -36,19 +36,19 @@
<!-- JavaScript Library to Convert Markdown into HTML -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- Marked plugin to add heading ID's -->
<!-- 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
const defaultTheme = 'darkly';
const bootswatchVersion = '5.3.1';
// 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())
// 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 it to HTML & put it inside the main tag
fetch( 'https://raw.githubusercontent.com/Shakil-Shahadat/awesome-piracy/main/Readme.md' )
.then( response => response.text() )
.then( data => {
@ -68,4 +68,4 @@
changeCSS( defaultTheme );
</script>
</body>
</html>
</html>