RunKit + npm: npm

node v10.24.1
endpointsharetweet
const unified = require('unified'); const remarkParse = require('remark-parse'); const stringify = require('rehype-stringify'); const remark2rehype = require('remark-rehype'); const remarkAttr = require('remark-attr'); const testFile = '![alt](img){ style="color:red" }'; unified() .use(remarkParse) .use(remarkAttr) .use(remark2rehype) .use(stringify) .process(testFile, (_, file) => { console.log(String(file)) } )
Created from: https://npm.runkit.com/npm
Loading…