import { visit } from "unist-util-visit";
const remarkDeepParse = () => {
return (tree) => {
visit(tree, "text", (node) => {
const hasMarkup = /<[a-zA-Z0-9_]+([^>].*)(>)/.test(node.value ?? "");
if (hasMarkup) {
node.type = "html";
}
});
};
};
export {
remarkDeepParse
};