Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: npm
node v10.24.1
endpoint
share
tweet
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…
Clone and edit this document