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

2.0.0-alpha.2 • Public • Published

@yozora/html-inline-code


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

    yarn add @yozora/html-inline-code

Usage

  • Basic:

    import type { IInlineCode } from '@yozora/ast'
    import renderInlineCode from '@yozora/html-inline-code'
    
    const inlineCode: IInlineCode = {
      "type": "inlineCode",
      "value": "dijkstra"
    }
    renderInlineCode(inlineCode)
    // => <code class="yozora-inline-code">dijkstra</code>

Related

Package Sidebar

Install

npm i @yozora/html-inline-code

Weekly Downloads

2

Version

2.0.0-alpha.2

License

MIT

Unpacked Size

6.42 kB

Total Files

6

Last publish

Collaborators

  • lemonclown