Skip to content

v0.3.12 - TeX Math Support

Choose a tag to compare

@notokeisho notokeisho released this 24 Jan 15:09
· 92 commits to main since this release

TeX数式サポート (MathJax)

  • インライン数式 ($E = mc^2$) とブロック数式 ($$...$$) に対応
  • bussproofs(証明図)、ams、physics 拡張を有効化
  • markdown-it パーサー: markdown-it-texmath プラグインを使用
  • pandoc パーサー: --mathjax オプションを使用
  • 設定で有効/無効の切り替えが可能 (math.enabled)
  • エンジン選択が可能 (math.engine: 'mathjax' または 'katex')

使用例

インライン数式: $E = mc^2$

ブロック数式:
$$
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$

証明図 (bussproofs):
$$
\begin{prooftree}
\AxiomC{$A$}
\AxiomC{$B$}
\BinaryInfC{$A \land B$}
\end{prooftree}
$$

インストール

npm install -g vimd@0.3.12