Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-10 | Added 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-10 | Removed an unnecessary variable from cloneUnmatchedBlocks. | John MacFarlane | |
2015-01-10 | Small performance optimization in dealing with final newline. | John MacFarlane | |
2015-01-10 | Reordered some definitions, so regex is defined before being used. | John MacFarlane | |
2015-01-10 | Regex optimizations in blocks.js. | John MacFarlane | |
2015-01-09 | Removed redundant condition. | John MacFarlane | |
2015-01-09 | JS linter improvements. | John MacFarlane | |
2015-01-09 | Improved newline parsing efficiency. | John MacFarlane | |
Don't check for `\n` when we know we have one. Gobble spaces after line break. | |||
2015-01-09 | JS: Renamed 'c' property to 'literal' to match libcmark. | John MacFarlane | |
2015-01-09 | JS: sourceloc -> sourcepos for confirmity with cmark. | John MacFarlane | |
2015-01-09 | Replaced 'pos' with 'sourceloc', making it an array. | John MacFarlane | |
This is a more compact representation. | |||
2015-01-09 | Added end column position to pos for blocks. | John MacFarlane | |
2015-01-09 | JS: Improved end lines. | John MacFarlane | |
Closes #276. | |||
2015-01-09 | JS: use c rather than string_content property for code blocks, html. | John MacFarlane | |
string_content is just for the raw string content that will be parsed as inlines, not for the 'real' content of the block element. | |||
2015-01-09 | Don't initialize strings, string_content to defined value. | John MacFarlane | |
2015-01-09 | Made `tight` a property of `list_data`. | John MacFarlane | |
2015-01-09 | Removed makeBlock. Use new Node directly. Initialize more fields. | John MacFarlane | |
2015-01-09 | JS: replace NUL characters with U+FFFD, as per spec. | John MacFarlane | |
2015-01-09 | More JS linter fixes. | John MacFarlane | |
2015-01-09 | Use 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. | |||
2015-01-07 | js: Use children instead of inline_content for Paragraph. | John MacFarlane | |
2014-12-27 | Minor whitespace fixes. | John MacFarlane | |
2014-12-10 | More js delinting. | John MacFarlane | |
2014-12-10 | More linter corrections to js code. | John MacFarlane | |
2014-11-23 | js: use 'CodeBlock' in AST for all code blocks. | John MacFarlane | |
Don't distinguish fenced, indented. | |||
2014-11-23 | Revert "Revert "Remove distinction btw atx and setext header in AST."" | John MacFarlane | |
This reverts commit 4570eb2bff2e1b71fa5b6408abbc69c98ff5ff24. | |||
2014-11-22 | Revert "Remove distinction btw atx and setext header in AST." | John MacFarlane | |
This reverts commit a71423f6ee1b77d9f79d42599ea00b4ca99f5da0. Not quite sure about this change, so reverting for now. Note that we still have a distinction between fenced and indented code blocks in the AST. These two distinctions seem to stand or fall together. | |||
2014-11-22 | Remove distinction btw atx and setext header in AST. | John MacFarlane | |
Now we just have 'header' -- Setext and ATX are just two ways of forming these; it's not a semantic difference that should remain in the AST. | |||
2014-11-22 | Fixed #192. | John MacFarlane | |
The C and JS implementations were not registering blank lines after atx headers for purposes of tight/loose list calculation. Exmaple: * item * # block1 ## block2 | |||
2014-11-22 | Updated JS and C implementations for #209. | John MacFarlane | |
A setext header was being treated a if it were a blank line for purposes of tight/loose list determination. Closes #209. | |||
2014-10-30 | js/lib/blocks: Made matchAt return -1 instead of null on no match. | John MacFarlane | |
2014-10-26 | Require space before closing # sequence in ATX header. | John MacFarlane | |
Closes #169. | |||
2014-10-18 | Added 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-18 | Add unescapeString as method of InlineParser. | John MacFarlane | |
2014-10-18 | Factored out blocks.js from index.js. | John MacFarlane | |