Age | Commit message (Collapse) | Author |
|
Just the skeleton, mostly copied from HTML renderer.
Can be simplified because of the regularity of the XML format.
See #280.
|
|
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.
|
|
|
|
as opposed to the 'render' function.
Added a 'colors' parameter for the ast renderer.
|
|
|
|
|
|
(AST itself has no nesting limits. BUt this prevents a crash
due to recursion in util.inspect.)
See #272.
|
|
This adds data-sourcepos attributes on block-level tags in
the HTML output.
Also added `--sourcepos` command-line option to `js/bin/commonmark`.
|
|
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.
|
|
|
|
|
|
|
|
|
|
* 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`.
|