@yozora/html-break
v2.0.0-alpha.2
Published
render Yozora Markdown AST node `IBreak` into HTML string
Downloads
11
Readme
This component is for rendering the Yozora Markdown AST node IBreak
produced by @yozora/tokenizer-break into HTML string.
This component has been built into [@yozora/html-markdown][], you can use it directly.
Install
npm
npm install --save @yozora/html-break
yarn
yarn add @yozora/html-break
Usage
Basic:
import type { IBreak } from '@yozora/ast' import renderBreak from '@yozora/html-break' const node: IBreak = { "type": "break" } renderBreak(node) // => <br class="yozora-break" />