]> git.ardis.lu - ardislu.dev/commitdiff
Update marked
authorArdis Lu <ardisglu@gmail.com>
Sun, 3 Sep 2023 17:12:22 +0000 (10:12 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 3 Sep 2023 17:12:22 +0000 (10:12 -0700)
script.js

index 540cd7e79bee369725b8d8df30af35d42995da8e..c5dacfabb77d9e2de478c541505a9332865352af 100644 (file)
--- a/script.js
+++ b/script.js
@@ -1,5 +1,5 @@
 import FlexDocument from 'https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.7.31/dist/module/document.min.js';
-import { marked } from 'https://cdn.jsdelivr.net/npm/marked@7.0.4/lib/marked.esm.min.js';
+import { marked } from 'https://cdn.jsdelivr.net/npm/marked@8.0.0/lib/marked.esm.min.js';
 import hljs from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/es/highlight.min.js';
 import powershell from 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/es/languages/powershell.min.js';
 import solidity from '/highlightjs-solidity.min.js';
@@ -130,10 +130,7 @@ function buildPostComponent(articleContent) {
 
   post.insertAdjacentHTML('beforeend',
     `<article class="post">
-    ${marked(articleContent, {
-      mangle: false,
-      headerIds: false
-    })}
+    ${marked(articleContent)}
   </article>`);
 
   return post;
This page took 0.049969 seconds and 4 git commands to generate.