summaryrefslogtreecommitdiff
path: root/js/bin/commonmark
AgeCommit message (Collapse)Author
2015-01-24Removed JS implementation, which is moving to its own repo:John MacFarlane
<https://github.com/jgm/commonmark.js>
2015-01-17Renamed DocParser -> Parser.John MacFarlane
Note: library users should update their code or it will break.
2015-01-16bin/commonmark: don't use the now-removed toObject for --ast.John MacFarlane
2015-01-11node.js: toAST -> toObject.John MacFarlane
2015-01-11XMLRenderer -> XmlRenderer.John MacFarlane
For consistency with HtmlRenderer. I'm not sure which is best.
2015-01-11Removed JS library's dependency on util.John MacFarlane
This reduces js/commonmark.js size by 20K.
2015-01-11Start on xml.js.John MacFarlane
Just the skeleton, mostly copied from HTML renderer. Can be simplified because of the regularity of the XML format. See #280.
2015-01-10Added options to DocParser.John MacFarlane
So far only 'time' is supported. 'time' now gives a breakdown of block parsing, inline parsing, and rendering. Currently the ratio is block parsing: 725ms inline parsing: 332ms rendering: 213ms so perhaps block.js is the best place to look for further optimizations.
2015-01-10Added --time option to js/bin/commonmark.John MacFarlane
2015-01-10Made 'options' a parameter of the renderer constructors...John MacFarlane
as opposed to the 'render' function. Added a 'colors' parameter for the ast renderer.
2015-01-10Removed unused import.John MacFarlane
2015-01-09JS linter improvements.John MacFarlane
2015-01-09Put limit on AST display as string.John MacFarlane
(AST itself has no nesting limits. BUt this prevents a crash due to recursion in util.inspect.) See #272.
2015-01-09Added options to render, implemented sourcepos option.John MacFarlane
This adds data-sourcepos attributes on block-level tags in the HTML output. Also added `--sourcepos` command-line option to `js/bin/commonmark`.
2015-01-09Use linked list instead of arrays for AST.John MacFarlane
Use the same doubly linked node structure that cmark uses. The primary advantages of this change are (a) simplified code, especially in the renderers, and (b) elimination of the need for recursion, so we can render deeply-nested structures without a stack overflow. A node walker has also been added, for easy AST traversal. * Added js/lib/node.js for nodes. Includes a node walker. * All modules updated to use node structures. * Regularized position information into pos property. * Performance is slightly worse than before, but only marginally, and no doubt there are more optimizations that can be done.
2014-12-10Fixed linter errors in js/bin/commonmark, js/test.js.John MacFarlane
2014-10-24Rename js/bin/markdown -> js/bin/commonmark.John MacFarlane