summaryrefslogtreecommitdiff
path: root/js/lib/index.js
AgeCommit message (Collapse)Author
2015-01-12Moved "use strict" to top of modules.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-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-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-09Updated renderAST in lib.John MacFarlane
2015-01-09Rename js/lib/html-renderer.js -> js/lib/html.js.John MacFarlane
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-10linter fixes to html5-entities.js and index.js.John MacFarlane
2014-11-10jshint improvements.John MacFarlane
2014-10-24More stmd -> commonmark changes.John MacFarlane
2014-10-18Added renderAST to js, added AST render tab to dingus.John MacFarlane
Modified processInlines so it creates new objects instead of modifying in place. This way we can remove the extraneous fields only needed for parsing.
2014-10-18Factored out blocks.js from index.js.John MacFarlane
2014-10-18Factored out inlines.js from index.js.John MacFarlane
2014-10-18Change from-code-point.js so it doesn't alter String prototype.John MacFarlane
2014-10-18Use browserify to make js code more modular.John MacFarlane
* Moved js library code to `js/lib`. * `js/stmd.js` is now generated from these files using browserify. * Factored out `html5-entities.js` and `from-code-point.js` from main js parsing code (which is now `index.js`). * Moved `js/markdown` to `js/bin`.