From: Ardis Lu Date: Sun, 3 Sep 2023 17:12:22 +0000 (-0700) Subject: Update marked X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=3dfe3c5bbde50953fc13f7e55589d80ae7bcb9cf;p=ardislu.dev Update marked --- diff --git a/script.js b/script.js index 540cd7e..c5dacfa 100644 --- 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', `
- ${marked(articleContent, { - mangle: false, - headerIds: false - })} + ${marked(articleContent)}
`); return post;