2.0.0-alpha.2 • Published 3 years ago
@yozora/html-inline-math v2.0.0-alpha.2
This component is for rendering the Yozora Markdown AST node IInlineMath
produced by @yozora/tokenizer-inline-math into HTML string.
This component has been built into @yozora/html-markdown, you can use it directly.
Install
npm
npm install --save @yozora/html-inline-math
yarn
yarn add @yozora/html-inline-math
Usage
Basic:
import type { IInlineMath } from '@yozora/ast' import renderInlineMath from '@yozora/html-inline-math' const inlineMath: IInlineMath = { "type": "inlineMath", "value": "$x^2 + y^2 = z^2$" } renderInlineMath(inlineMath) // => <span class="yozora-inline-math">$x^2 + y^2 = z^2$</span>
Related
2.0.0-alpha.0
4 years ago
2.0.0-alpha.1
3 years ago
2.0.0-alpha.2
3 years ago
1.0.0-alpha.4
4 years ago
1.0.0-alpha.3
4 years ago
1.0.0-alpha.2
4 years ago
1.0.0-alpha.1
4 years ago
1.0.0-alpha.0
4 years ago