Neo's Personal Matrix

    @convertkit/slate-htm

    0.0.4 • Public • Published

    name: Slate HTM route: /slate-htm

    Slate HTM

    Provides JSX like syntax for creating Slate values.

    Install

    yarn add -D @convertkit/slate-htm

    Usage

    import { createHTM } from "@convertkit/slate-htm";
    
    const html = createHTM(({
      blocks: {
        paragraph: "paragraph",
    
      },
      inlines: {
        link: "link"
      },
      marks: {
        bold: "bold"
      }
    })
    
    const value = html`
      <value>
        <document>
          <paragraph>Example <link>link</link></paragraph>
        </document>
      </value>
    `

    Keywords

    none

    Install

    npm i @convertkit/slate-htm

    DownloadsWeekly Downloads

    66

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    44.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • ppiotrowicz
    • dylanfeltus
    • erinfox
    • ericathompson
    • corydhmiller
    • bcarney
    • christinacole
    • raquelxmoss
    • marksouthard
    • noelherrick
    • mbbbb
    • jurezove
    • ivanmp-convertkit
    • krishamoud
    • markthomasmiller
    • jenessaw
    • josephrexme