@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>
`

Readme

Keywords

none

Package Sidebar

Install

npm i @convertkit/slate-htm

Weekly Downloads

145

Version

0.0.4

License

MIT

Unpacked Size

44.5 kB

Total Files

6

Last publish

Collaborators

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