untitled notebook

node v6.17.1
version: master
endpointsharetweet
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
Loading…

no comments

    sign in to comment