From c0d365aaafd26233dfc62abdcde41b043ebde59a Mon Sep 17 00:00:00 2001 From: moris Date: Sun, 29 Dec 2024 09:58:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20E=E3=82=92=E5=B0=8F=E6=96=87=E5=AD=97?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Posts/remark-math.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Posts/remark-math.md b/Posts/remark-math.md index 5330714..a0c1f2f 100644 --- a/Posts/remark-math.md +++ b/Posts/remark-math.md @@ -30,7 +30,7 @@ KaTeXの方が軽量らしいのでそちらを採用することに(サーバ ~~~ ```math -e = mc^2 +E = mc^2 ``` ~~~ @@ -52,7 +52,7 @@ import remarkRehype from 'remark-rehype' import rehypeKatex from 'rehype-katex' import rehypeStringify from 'rehype-stringify' -let markdown = "$e=mc^2$" +let markdown = "$E=mc^2$" let html = remark() .use(remarkmath) @@ -65,7 +65,7 @@ console.log(String(html)) ``` ### 実行結果 ```html -

e=mc2e=mc^2

+

E=mc2E=mc^2

``` 実行するとhtmlが出てくるのですが、そのまま.htmlで保存してブラウザで開くと、ダブってるし片方は数式になっていません。