const remark = require('remark');
const vdom = require('remark-vdom');
const source = `
\`\`\`html
<body>
</body>
\`\`\`
`;
const opts = {
components: {
code(_, props) {
result = props;
}
}
}
let result;
remark().use(vdom, opts).process(source);
console.log(Object.keys(result)); // should contain lang information; documentation mentions className