Update index.html
This commit is contained in:
parent
13a7c979ef
commit
707ab57cc8
12
index.html
12
index.html
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue