2.0.0-alpha.2 • Published 3 years ago
@yozora/html-text v2.0.0-alpha.2
This component is for rendering the Yozora Markdown AST node IText
produced by @yozora/tokenizer-text into HTML string.
This component has been built into @yozora/html-markdown, you can use it directly.
Install
npm
npm install --save @yozora/html-text
yarn
yarn add @yozora/html-text
Usage
Basic:
import type { IText } from '@yozora/ast' import renderText from '@yozora/html-text' const text: IText = { "type": "text", "value": "literal content." } renderText(text) // => <span class="yozora-text">literal content.</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