@yozora/html-thematic-break
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.2 • Public • Published

@yozora/html-thematic-break


This component is for rendering the Yozora Markdown AST node IThematicBreak produced by @yozora/tokenizer-thematic-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-thematic-break
  • yarn

    yarn add @yozora/html-thematic-break

Usage

  • Basic:

    import type { IThematicBreak } from '@yozora/ast'
    import renderThematicBreak from '@yozora/html-thematic-break'
    
    const thematicBreak: IThematicBreak = { "type": "thematicBreak" }
    renderThematicBreak(thematicBreak)
    // => <hr class="yozora-thematic-break" />

Related

Package Sidebar

Install

npm i @yozora/html-thematic-break

Weekly Downloads

2

Version

2.0.0-alpha.2

License

MIT

Unpacked Size

6.06 kB

Total Files

6

Last publish

Collaborators

  • lemonclown