Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.


Remark-Rehype Table Parse

node v11.15.0
version: 2.0.0
var vfile = require("to-vfile"); var report = require("vfile-reporter"); var unified = require("unified"); var markdown = require("remark-parse"); var remark2rehype = require("remark-rehype"); var doc = require("rehype-document"); var format = require("rehype-format"); var html = require("rehype-stringify"); unified() .use(markdown) .use(remark2rehype) .use(doc) .use(format) .use(html) .process("|a|b|\n|---|---|\n|c|d|", function(err, file) { console.error(report(err || file)); console.log(String(file)); });

no comments

    sign in to comment