]> git.ardis.lu - ardislu.dev/commitdiff
Disable deprecated and unused features
authorArdis Lu <ardisglu@gmail.com>
Wed, 24 May 2023 04:01:33 +0000 (21:01 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 24 May 2023 04:01:33 +0000 (21:01 -0700)
Per new warning in v5

script.js

index fc8aac6e4f13768d7c90e926d897d5908c56f2a0..18b559756cb5c61087c1f7d9bdf743c5fe69f7be 100644 (file)
--- a/script.js
+++ b/script.js
@@ -130,7 +130,10 @@ function buildPostComponent(articleContent) {
 
   post.insertAdjacentHTML('beforeend',
     `<article class="post">
-    ${marked(articleContent)}
+    ${marked(articleContent, {
+      mangle: false,
+      headerIds: false
+    })}
   </article>`);
 
   return post;
This page took 0.037996 seconds and 4 git commands to generate.