Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var unified = require('unified')
var markdown = require('remark-parse')
var remark2rehype = require('remark-rehype')
var html = require('rehype-stringify')
var report = require('vfile-reporter')
unified()
.use(markdown)
.use(remark2rehype)
.use(html)
.process('# Hello world!\n<blockquote>foo</blockquote>', function(err, file) {
console.error(report(err || file))
console.log(String(file))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.