Astro(starlight)でrehypeKatexプラグインに引数を渡す方法.
Astroを使用して,Webページを作成している.をプラグインに利用して数式を記述しているが,数式内に日本語が混入すると警告が少々うるさい. 例えば以下のようなもの.
LaTeX-incompatible input and strict mode is set to 'warn': Unicode text character "存" used in math mode [unicodeTextInMathMode]
これを抑止するためには,使用しているプラグインrehypeKatex
に引数{strict: true}
を渡せばよい.その方法がわかったので,記載する.
... markdown: { remarkPlugins: [remarkMath], rehypePlugins: [ [rehypeKatex, {strict: true}] ], } ...