Closed simonflk closed 3 years ago
For now, I am working around it with
.use(deflist)
.use(() => tree =>
visit(tree, ["paragraph"], node => {
// remove invalid <p> wrapper around <dl>
// See https://github.com/Symbitic/remark-plugins/issues/3
if (
node.children.length === 1 &&
node.children[0].type === "descriptionlist"
) {
Object.assign(node, node.children[0]);
}
})
)
Hi @simonflk, sorry for taking so long. Your pull request has been merged. Thank you for submitting this.
This PR fixes #3