UNPKG

@jverneaut/html-to-gutenberg

Version:

Create custom Gutenberg blocks from the HTML templates you already have.

8 lines (6 loc) 193 B
import { toHtml } from "hast-util-to-html"; import he from "he"; export default (ast) => { // "he" decodes escaped characters return he.decode(toHtml(ast, { closeSelfClosing: true })); };