summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2015-01-11node.js: Added title and destination to list of props to show in toAST.John MacFarlane
2015-01-11Handle more attributes with xml.js.John MacFarlane
2015-01-11XML writer - implemented list attributes.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-11xml.js: basic structure working.John MacFarlane
Need to handle attributes.
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-11node.js: use switch instead of if-else.John MacFarlane
2015-01-10More efficient detab.John MacFarlane
2015-01-10Timings: added 'preparing input'.John MacFarlane
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-10Removed a redundant clause from switch statement.John MacFarlane
Lines starting
2015-01-10Added --time option to js/bin/commonmark.John MacFarlane
2015-01-10Include a mini ansi implementation in test.js.John MacFarlane
This way we don't need to depend on the ansi module at all.
2015-01-10Removed ansi from js source tree.John MacFarlane
Test suite will now use ansi if the package is installed, otherwise skip it.
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 an unnecessary variable from cloneUnmatchedBlocks.John MacFarlane
2015-01-10html.js: removed blocksep and innersep, no longer used.John MacFarlane
2015-01-10HTML renderer: throw error on unknown tag type.John MacFarlane
This indicates a programming error.
2015-01-10Put another regex in a variable.John MacFarlane
2015-01-10Another "test before replace" optimization.John MacFarlane
2015-01-10Small performance optimization in dealing with final newline.John MacFarlane
2015-01-10HTML renderer: Test for characters that need escaping before substituting.John MacFarlane
2015-01-10More HTML rendering efficiency improvements.John MacFarlane
2015-01-10Don't use array buffer in HTML rendering.John MacFarlane
Use straight string `+=` instead. This is supposedly faster in browsers other than IE 7.
2015-01-10Reordered some definitions, so regex is defined before being used.John MacFarlane
2015-01-10Removed unused import.John MacFarlane
2015-01-10Made Node a local variable.John MacFarlane
2015-01-10Made NodeWalker a regular function returning an object.John MacFarlane
2015-01-10Removed unnec. comment.John MacFarlane
2015-01-10Regex optimizations in inlines.js.John MacFarlane
2015-01-10Regex optimizations in blocks.js.John MacFarlane
2015-01-09Moved more regexes into variables.John MacFarlane
2015-01-09Put backtick regexes in variables.John MacFarlane
2015-01-09Removed redundant condition.John MacFarlane
2015-01-09Removed a redundant condition.John MacFarlane
2015-01-09Use a switch instead of if-then-else.John MacFarlane
2015-01-09Small optimization.John MacFarlane
2015-01-09JS linter improvements.John MacFarlane
2015-01-09Improved unescapeString performance.John MacFarlane
2015-01-09Improved newline parsing efficiency.John MacFarlane
Don't check for `\n` when we know we have one. Gobble spaces after line break.
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-09Non-recursive version of toAST().John MacFarlane
Closes #272.
2015-01-09Updated renderAST in lib.John MacFarlane
2015-01-09JS: Renamed 'c' property to 'literal' to match libcmark.John MacFarlane
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-09JS: sourceloc -> sourcepos for confirmity with cmark.John MacFarlane
2015-01-09Replaced 'pos' with 'sourceloc', making it an array.John MacFarlane
This is a more compact representation.
2015-01-09Added end column position to pos for blocks.John MacFarlane
2015-01-09JS: Improved end lines.John MacFarlane
Closes #276.