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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    175
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    175
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @convertkit/slate-htm

Weekly Downloads

175

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