using code like this:
var remarkAbstract = require("remark");
var remark = remarkAbstract();
let remark = remarkAbstract();
var ast = remark.process(input);
but it returns output like:
AssertionError: VFile {
contents: '# header\n\n20 December 2012\n\n![alt](http://yo.io/)\n\ncontent1\n\ncontent2\n\n## header2\n',
messages: =
I'd like to get AST tree like this
remark
, but the docs seems too simple, not cover how to get ast. – Tavey