summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-09Non-recursive version of toAST().John MacFarlane
Closes #272.
2015-01-09Updated dingus.John MacFarlane
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.
2015-01-09Don't include string_content in output of toAST().John MacFarlane
2015-01-09JS: 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-09Updated benchmarks.John MacFarlane
2015-01-09Rewrote HTML escaping for big performance gain.John MacFarlane
2015-01-09Updated benchmarks.md.John MacFarlane
2015-01-09Comment fix.John MacFarlane
2015-01-09Simplified reMain for more performance gains.John MacFarlane
2015-01-09Simplified reMain, with AST manipulation for 2-space hardbreak.John MacFarlane
Small performance improvement.
2015-01-09Don't initialize strings, string_content to defined value.John MacFarlane
2015-01-09Made `tight` a property of `list_data`.John MacFarlane
2015-01-09Initialize more properties of Node. Even better performance!John MacFarlane
2015-01-09Initialize more fields in Node. Better performance.John MacFarlane
2015-01-09Initialize more fields in Node.John MacFarlane
This helps with performance.
2015-01-09Removed makeBlock. Use new Node directly. Initialize more fields.John MacFarlane
2015-01-09JS: replace NUL characters with U+FFFD, as per spec.John MacFarlane
2015-01-09More JS linter fixes.John MacFarlane
2015-01-09JS linter improvements.John MacFarlane
(Note: this is helping performance. We have regained everything we lost with the last major change, and more.)
2015-01-09Rename js/lib/html-renderer.js -> js/lib/html.js.John MacFarlane
2015-01-09JS linter cleanups.John MacFarlane
2015-01-09Minor code reformatting.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.
2015-01-09js/bench.js: use npm, added markdown-it.John MacFarlane
2015-01-09xml writer: add list attributes.John MacFarlane
2015-01-08Added `cmark_iter_reset` and a note about handling destructive updates.John MacFarlane
2015-01-07js: Use children instead of inline_content for Paragraph.John MacFarlane
2015-01-07js: Use children rather than 'c' for Emph and Strong contents.John MacFarlane
Now we use 'children' uniformly, in both inlines and blocks, for child nodes.
2015-01-07js: Changed 'label' in Link, Image to 'children'.John MacFarlane
This matches the C impl. Also removed an unused property.
2015-01-07Fixed 'make alltest.md'.John MacFarlane
2015-01-07cmark: Add function & option to normalize text nodes.John MacFarlane
So, instead of <text>Hi</text> <text>&amp;</text> <text>lo</text> we get <text>Hi&amp;lo</text> * Added exported `cmark_consolidate_text_nodes` function. * Added `CMARK_OPT_NORMALIZE` to options. * Added optional normalization in XML writer. * Added `--normalize` option to command-line program. * Updated man page.
2015-01-07Merge pull request #273 from zmwangx/masterJohn MacFarlane
Fix typo in README.md
2015-01-06Fixed typo in README.mdZhiming Wang
2015-01-06Merge pull request #269 from jgm/licenseVicent Marti
Updated LICENSE, renamed to COPYING.
2015-01-06COPYING: record that utf8.* derived from utf8proc.John MacFarlane
2015-01-06Updated COPYING to include copyright for utf8proc.John MacFarlane
2015-01-05Clarify that brackets in general don't take precedence over emph.John MacFarlane
Closes #258.
2015-01-05Clarify that final newline is removed from paragraph content.John MacFarlane
Closes #176.
2015-01-05Talk of "info string" rather than "attributes" for code blocks.John MacFarlane
Closes #262.
2015-01-05Clarified precedence of code spans, HTML tags, autolinks.John MacFarlane
Closes #259.
2015-01-05Reformatted code consistently with astyle.John MacFarlane
2015-01-05Added 'make astyle' to reformat code consistently.John MacFarlane
2015-01-05Updated LICENSE, renamed to COPYING.John MacFarlane
This update clarifies the provenance and license of buffer.h, buffer.c, chunk.h, utf8.h, utf8.c. @vmg certifies by merging this PR that the license and copyright information are accurate.