summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-10-09Revert "Modified inline parsing to keep track of two pointers - the head of ↵Knagis
the list and the tail." This reverts commit bc78ad0a182bd322552fd081e30e552c18a87455.
2014-10-09Modified inline parsing to keep track of two pointers - the head of the list ↵Knagis
and the tail.
2014-10-08Merge branch 'master' of github.com:jgm/stmdJohn MacFarlane
2014-10-09Merge branch 'master' into cmake-buildGulliver
* master: (75 commits) Remove duplicate `footer` Correct capitalization of JavaScript Added link to commonmark.org on web page. Added cases from #51 to spec. Added test case from issue #147. Removed uthash license. We no longer use this library. Removed bstrlib license. We no longer use this library. Removed oldtests. Cleaned up entity section of spec. Adjusted tests for new js parser. stmd.js: Fixed entityToChar, adding fromCodePoint polyfill. Reset label_nest_level before parsing reference. Removed spurious 'and', reflowed. Removed spurious 'and', reflowed. Further emph fallback optimizations. Some jshint fixes. Use simpler algorithm. Revert "Use integers instead of strings for tags." Revert "Use numerical constants." Use numerical constants. ...
2014-10-09Merge branch 'master' into cmake-buildGulliver
* master: Adds missing newlines Changes urls to use example.com Changes append to prepend Suppress 'missing field initializer' warnings Makefile: Use ?= so variables can be set on command line. Fix some compatibility issues
2014-10-08Merge pull request #155 from wbond/masterJohn MacFarlane
Remove duplicate `footer`
2014-10-08Remove duplicate `footer`Will Bond
2014-10-08Implemented stack-based algorithm for matching emphasisKnagis
2014-10-08Merge pull request #1 from jgm/masterKārlis Gaņģis
merge
2014-10-07Changed bench.js so it no longer requires oldtests.John MacFarlane
2014-10-07Correct capitalization of JavaScriptBengt Lüers
2014-10-07Added link to commonmark.org on web page.John MacFarlane
Closes #23.
2014-10-07Added cases from #51 to spec.John MacFarlane
Closes #51.
2014-10-07Added test case from issue #147.John MacFarlane
2014-10-07Removed uthash license. We no longer use this library.John MacFarlane
2014-10-07Removed bstrlib license. We no longer use this library.John MacFarlane
2014-10-07Removed oldtests.John MacFarlane
2014-10-07Merge branch 'master' into newemphasisJohn MacFarlane
Conflicts: spec.txt
2014-10-07Cleaned up entity section of spec.John MacFarlane
We convert entities to unicode characters, not UTF-8 sequences. (Though they might ultimately be output that way.)
2014-10-07Adjusted tests for new js parser.John MacFarlane
2014-10-07stmd.js: Fixed entityToChar, adding fromCodePoint polyfill.John MacFarlane
Closes #151.
2014-10-07Reset label_nest_level before parsing reference.John MacFarlane
This fixes a bug with text like: [[some unrelated text [link] [link]: destination See #146.
2014-10-07Removed spurious 'and', reflowed.John MacFarlane
2014-10-07Removed spurious 'and', reflowed.John MacFarlane
2014-10-07Build a very simple shared library.Till Varoquaux
2014-10-06Merge pull request #143 from aJanuary/patch-1John MacFarlane
Changes append to prepend
2014-10-06Merge pull request #144 from aJanuary/masterJohn MacFarlane
Changes urls to use example.com
2014-10-06- Use of calloc instead of malloctchetch
- Test for NULL after allocation
2014-10-04Further emph fallback optimizations.John MacFarlane
2014-10-04Some jshint fixes.John MacFarlane
2014-10-04Use simpler algorithm.John MacFarlane
This handles things like `**hi***there*` and gives symmetrical treatment of `**hi*` and `*hi**`. Also handles the case from #147.
2014-10-02Revert "Use integers instead of strings for tags."John MacFarlane
This reverts commit ac611d51c9de9aa719b42b9463e6f28d6e7d74a4.
2014-10-02Revert "Use numerical constants."John MacFarlane
This reverts commit db25de09f5dc931c0e2b31ce0ccdb58052f3105f.
2014-10-02Use numerical constants.John MacFarlane
Performance optimization, but at cost of code clarity.
2014-10-02Use integers instead of strings for tags.John MacFarlane
Use === whenever possible to compare them.
2014-10-02Changed inline parsers to be monomorphic and modify inlines param.John MacFarlane
They all return true or false now, instead of the inlines parsed. Performance optimization.
2014-10-02Fixed rendering bug for blockquotes.John MacFarlane
2014-10-02Char code optimizations in block parsers.John MacFarlane
2014-10-02Eliminated unnecessary variable.John MacFarlane
2014-10-02Changed peek() to return char code.John MacFarlane
Test char codes instead of strings. Small optimization (about 1% speed boost).
2014-09-30Unescape entities as well as backslashes in titles, URLs.John MacFarlane
This way URLs with entities will be properly percent encoded as in the C implementation.
2014-09-30unescape URI before escaping.John MacFarlane
If we already have %-encoded characters in the URI, we want to preserve them.
2014-09-30Added entity decoding.John MacFarlane
AST now contains parses entities as Str objects with unicode characters, not as 'Entity'. (Like the new C parser.)
2014-09-29Rename unescape -> unescapeBS to avoid confusion with built-in.John MacFarlane
2014-09-29Escape URIs.John MacFarlane
2014-09-29Merge branch 'master' into newemphasisJohn MacFarlane
Conflicts: Makefile js/stmd.js
2014-09-29Use charAt for browser compatibility.John MacFarlane
2014-09-29Adds missing newlinesAndrew January
2014-09-29Changes urls to use example.comAndrew January
As per RFC 2606 it is recommended to use example.com for sample urls in specifications. One example is left using "foo+special@Bar.baz-bar0.com" because it is designed to demonstrate the complexity of email addresses that should be permitted.
2014-09-29Changes append to prependAndrew January
When adding something to the beginning it is "prepending", not "appending"