A JSX-like syntax for creating Slate Values
npm install @convertkit/slate-htm---
name: Slate HTM
route: /slate-htm
---
Provides JSX like syntax for creating Slate values.
``sh`
yarn add -D @convertkit/slate-htm
`jsx
import { createHTM } from "@convertkit/slate-htm";
const html = createHTM(({
blocks: {
paragraph: "paragraph",
},
inlines: {
link: "link"
},
marks: {
bold: "bold"
}
})
const value = html
``