From 3d8913dca58235aaf92b18f60bad44190ac74bbc Mon Sep 17 00:00:00 2001 From: moris Date: Fri, 7 Mar 2025 12:58:15 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=83=A1=E3=83=AB=E3=82=B1?= =?UTF-8?q?=E3=83=BC=E3=82=B9=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/Markdown.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/components/Markdown.ts b/src/lib/components/Markdown.ts index bf2396d..62a7dc2 100644 --- a/src/lib/components/Markdown.ts +++ b/src/lib/components/Markdown.ts @@ -1,11 +1,11 @@ export default Perser; import { remark } from 'remark' -import remarkgfm from 'remark-gfm' +import remarkGfm from 'remark-gfm' import remarkBreaks from "remark-breaks" -import remarkmath from 'remark-math' +import remarkMath from 'remark-math' import remarkRehype from 'remark-rehype' -import rehypeslug from 'rehype-slug' +import rehypeSlug from 'rehype-slug' import rehypeKatex from 'rehype-katex' import rehypeHighlight from 'rehype-highlight' import rehypeExternalLinks from 'rehype-external-links' @@ -16,11 +16,11 @@ import rehypeHeaderLinks from 'rehype-header-links' function Perser(mdtext: string): string { let md = remark() - .use(remarkgfm) // Github Markdown + .use(remarkGfm) // Github Markdown .use(remarkBreaks) // 改行 - .use(remarkmath) // 数式 + .use(remarkMath) // 数式 .use(remarkRehype, {allowDangerousHtml: true}) - .use(rehypeslug) // headingにidを設定 + .use(rehypeSlug) // headingにidを設定 .use(rehypeKatex, {output:'mathml'}) // 数式 .use(rehypeHighlight) // Syntax highlight .use(rehypeExternalLinks, {target:'_blank', rel:['noreferrer','noopener']}) // 外部サイトを新規タブで開く