summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-16Defer closing of fenced code blocks.John MacFarlane
Instead of closing a fenced code block when we see the closing fence, we set fenceLength to -1, which then signals the code that checks for block enders that it is time to close the block. This allows us to process a blank line after the fenced code and set _lastLineBlank appropriately. Addresses #285 for JS implementation.
2015-01-16Removed unnecessary setting of default tight=true in finalize.John MacFarlane
We do that when the listData object is initialized.
2015-01-16Check for blank line before checking indent in Item.John MacFarlane
2015-01-16bin/commonmark: don't use the now-removed toObject for --ast.John MacFarlane
2015-01-16Nonrecursive rewrite of ends_with_blank_line.John MacFarlane
Closes #286.
2015-01-16Renamed parameters cmark_node -> node.John MacFarlane
Minor code reformatting: This corrects an overzealous global replace from earlier.
2015-01-16Rename bullet_char -> bulletChar.John MacFarlane
2015-01-15README.md: refer to js/README.md for details on JS implementation.John MacFarlane
2015-01-15Improved js README.md.John MacFarlane
Still much to do.
2015-01-15Provide getters and setters for public properties of Node.John MacFarlane
Everything else gets a name starting with an underscore and will be considered private. This will allow us to keep the API stable while changing the underlying data structure. And it will avoid exposing properties that have only an instrumental value in parsing.
2015-01-15Fixed template path in tools/makespec.py.John MacFarlane
2015-01-15Fixed (interact) link in template.html.John MacFarlane
This broke when we switched from pandoc to cmark for the spec, because the class on code changed from 'markdown' to 'language-markdown'.
2015-01-15Re-added tools/{makespec.py, template.html, template.tex}.John MacFarlane
These were inadvertently dropped in the commit that described them as being moved to tools/.
2015-01-15Rename sourcepos -> _sourcepos, added sourcepos() accessor.John MacFarlane
2015-01-15Removed Node.toObject().John MacFarlane
2015-01-15Renamed .t to ._type to mark it as "hidden."John MacFarlane
2015-01-15Removed setType(), replaced getType() with type().John MacFarlane
2015-01-15eslint fix.John MacFarlane
2015-01-15eslint fixes.John MacFarlane
2015-01-15normalize-reference.js: disable eslint spacing warnings.John MacFarlane
2015-01-15Removed vestigial ReferenceDef node type.John MacFarlane
2015-01-15Added getType(), setType() to node.js.John MacFarlane
Use these instead of direct property access. This is the first step in a general move towards an API like the one libcmark has. This will allow us to have a stable API that is independent of details of the AST.
2015-01-15Removed artificial distinction btw FencedCode, IndentedCodeJohn MacFarlane
in blocks.js.
2015-01-15Updated benchmarks.John MacFarlane
2015-01-15Added normalize-reference.js.John MacFarlane
This does a proper unicode case fold instead of just using toUpperCase. It is also faster, partly because we can do one pass for space and case normalization. Modified from the NPM package fold-case; proper credit given in source and COPYING.
2015-01-15Bump package.json version to 0.16.0.John MacFarlane
2015-01-14Added changelog.c.txt and js/changelog.js.txt.John MacFarlane
2015-01-14Bump spec version to 0.16.John MacFarlane
2015-01-14Updated changelog.John MacFarlane
2015-01-14Slightly more efficient test for lazy continuation.John MacFarlane
2015-01-14Fixed minor linter issues.John MacFarlane
2015-01-14Added pathological tests to test.js.John MacFarlane
The nested brackets test reveals some issue there.
2015-01-14Added (still commented-out) pathological tests to test.js.John MacFarlane
2015-01-14Rewrote beginning of Entities section.John MacFarlane
Clarified that only entities that are not in code blocks or code spans are decoded.
2015-01-14Inserted space (typo).John MacFarlane
See #284.
2015-01-14Removed defective Example 449.John MacFarlane
Closes #284.
2015-01-13Removed an implicit cast in node.js 'next'.John MacFarlane
2015-01-13Updated benchmarks.John MacFarlane
2015-01-13Initialize fields in objects to null rather than undefined.John MacFarlane
Big speed boost.
2015-01-13blocks.js - avoid an implicit boolean cast.John MacFarlane
2015-01-13Updated benchmarks.John MacFarlane
2015-01-13Simplified some of the new-block-start logic.John MacFarlane
2015-01-13Assign marker_offset to list data at initialization.John MacFarlane
2015-01-13last_matched_container -> lastMatchedContainer.John MacFarlane
2015-01-13Ensure that closeUnmatchedBlocks is not called unnecessarily.John MacFarlane
2015-01-13Fixed start column for blockquotes.John MacFarlane
2015-01-13Added lineNumber proper to DocParser.John MacFarlane
Removed lineNumber param from addChild and some other methods.
2015-01-13Fixed typo in spec.John MacFarlane
Closes #283.
2015-01-12Updated benchmarks.John MacFarlane
2015-01-12Made closeUnmatchedBlocks a method of DocParser...John MacFarlane
instead of a closure. Performance increase and code simplification.