UNPKG

@jverneaut/html-to-gutenberg

Version:

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

6 lines (4 loc) 134 B
import { remove } from "unist-util-remove"; export default (ast, tagName) => { remove(ast, (node) => node.tagName === tagName); };