add: katexをmathmlにした
This commit is contained in:
parent
1790fc9836
commit
a98e7cf9a2
@ -161,13 +161,8 @@
|
||||
width: 60%;
|
||||
}
|
||||
}
|
||||
& .katex-html {
|
||||
display: none;
|
||||
}
|
||||
& .katex-display {
|
||||
& math {
|
||||
& math[display="block"] {
|
||||
margin: 1rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
}
|
@ -24,7 +24,7 @@
|
||||
.use(remarkmath) // 数式
|
||||
.use(remarkRehype, {allowDangerousHtml: true})
|
||||
.use(rehypeslug) // headingにidを設定
|
||||
.use(rehypeKatex) // 数式
|
||||
.use(rehypeKatex, {output:'mathml'}) // 数式
|
||||
.use(rehypeHighlight)// Syntax highlight
|
||||
.use(rehypeExternalLinks, {target:'_blank', rel:['noreferrer','noopener']})// 外部サイトを新規タブで開く
|
||||
.use(rehypeStringify, {allowDangerousHtml: true})
|
||||
|
Loading…
Reference in New Issue
Block a user