Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-12-29 | spec: Define ascii punctuation character separately. | John MacFarlane | |
That's because some ascii punctuation characters (like `<`) are not in a "P" character class (they are mathematical symbols). They need to be escapable so we'll treat them as "punctuation" here. | |||
2014-12-29 | Added wrapper3.py (python3 sample wrapper). | John MacFarlane | |
2014-12-29 | Updated tests to use python3. | John MacFarlane | |
2014-12-29 | Fixed md2man for python3. | John MacFarlane | |
Partially addresses #254. This change makes make_man_page.py work with either python3 or python2. The test suite is still dependent on python2, and this should be changed, but for now this at least makes a build possible. | |||
2014-12-29 | Avoid warning about unused options parameter in man writer. | John MacFarlane | |
2014-12-29 | Make `--sourcepos` affect xml writer too. | John MacFarlane | |
2014-12-29 | Added options parameter to renderers. | John MacFarlane | |
To keep the API simple and avoid API changes when new options are added, this is just a long integer. Set it by disjoining options that are defined as powers of 2: e.g. `CMARK_HTML_SOURCEPOS | CMARK_HTML_HARDREAKS`. Test options using `&`: `if (options & CMARK_HTML_SOURCEPOS)`. Added `--hardbreaks` and `--sourcepos` command-line options. | |||
2014-12-28 | Added cmark_node_set_list_delim, cmark_node_get_list_delim. | John MacFarlane | |
Even though this doesn't make a difference in default HTML output, it's worth keeping track; some output formats may allow you to distinguish lists with `1)` and with `1.` delimiters. | |||
2014-12-28 | Added CMARK_NO_DELIM to cmark_delim_type | John MacFarlane | |
2014-12-28 | Removed old 'ast' format, now that we have 'xml'. | John MacFarlane | |
The xml representation of the AST is not quite as pretty, but it contains the same information and is not in an ad hoc format. See #53. | |||
2014-12-28 | Adjust benchmarks for cmark. | John MacFarlane | |
2014-12-28 | Improved end column/end line calculations in finalize. | John MacFarlane | |
2014-12-28 | Added end_column to cmark_node struct. | John MacFarlane | |
API exports cmark_node_get_column. XML writer indicates start and end line and column for block-level nodes. | |||
2014-12-28 | blocks.c - removed unneeded start_line parameter from make_block. | John MacFarlane | |
2014-12-28 | blocks.c: removed redundant line_number param in finalize. | John MacFarlane | |
Also break_out_of_lists. | |||
2014-12-28 | Rename CMARK_NODE_LIST_ITEM -> CMARK_NODE_ITEM. | John MacFarlane | |
2014-12-28 | Revamped xml writer and dtd to use lowercase element names. | John MacFarlane | |
2014-12-28 | Rename cmark_node_type_string -> cmark_node_get_type_string. | John MacFarlane | |
And export in cmark.h public header. Also, use lowercase names, not uppercase. | |||
2014-12-28 | Added xml writer, to dump the AST in XML. | John MacFarlane | |
This is a work-in-progress. CommonMark.dtd gives the DTD for the generated XML. Closes #53. | |||
2014-12-28 | Expose cmark_node_type_string in node.h (private header). | John MacFarlane | |
Previously was static function S_type_string. | |||
2014-12-27 | pathological_tests.py: limit to 65000 reps. | John MacFarlane | |
This is because some versions of python have a limit of N = 65535 in regex `{N}`. | |||
2014-12-27 | Spec: added example with two blank lines in fenced code in sublist. | John MacFarlane | |
Actually I just tacked this on to the existing Example 170. Closes #180. | |||
2014-12-27 | Clarify precedence of empty list item over setext header line. | John MacFarlane | |
CLoses #95. | |||
2014-12-27 | Makefile: Added spec target with check of internal links/anchors. | John MacFarlane | |
2014-12-27 | spec: Added rule for empty list item. | John MacFarlane | |
Closes #242. | |||
2014-12-27 | Spec: reworded principle of uniformity for more generality. | John MacFarlane | |
It applies to all container blocks, not just list items. | |||
2014-12-27 | spec: added another example of unclarity in Markdown syntax description. | John MacFarlane | |
2014-12-27 | Added pathological tests for nulls in input and nested blockquotes. | John MacFarlane | |
2014-12-27 | Minor whitespace fixes. | John MacFarlane | |
2014-12-27 | Fixed shadowing error. | John MacFarlane | |
2014-12-26 | Updated benchmark for cmark. | John MacFarlane | |
2014-12-26 | Use python, not python2, as name of python interpreter. | John MacFarlane | |
Partially reverts ba8f2c48b700a466a8cf7097d5f72d43372d4c37. See #251. | |||
2014-12-26 | Optimized the change in 72a556fd3bd17feaffba2fb6faa8c8f2a3931643. | John MacFarlane | |
Thanks @Knagis. | |||
2014-12-26 | Revert "Makefile: specify python2 in places where it's needed." | John MacFarlane | |
This reverts commit 2455209cb0051f562bb8d9525951ac902320afeb. | |||
2014-12-25 | Fixed links to HTML5 spec. | John MacFarlane | |
2014-12-25 | Fixed some broken anchors in the spec. | John MacFarlane | |
2014-12-25 | Linkified "whitespace" in spec. | John MacFarlane | |
Closes #108. | |||
2014-12-25 | Makefile: specify python2 in places where it's needed. | John MacFarlane | |
2014-12-25 | Updated C parser to handle #252. | John MacFarlane | |
Closes #252. | |||
2014-12-25 | Added test case for link-in-link-in-image (#252). | John MacFarlane | |
2014-12-25 | JS: fixed parsing of link-in-link-in-image. | John MacFarlane | |
Partially addresses #252. Still need to: - update C parser. - put an example in the spec. | |||
2014-12-25 | Fixed infinite loop in JS parser for link-in-link-in-image. | John MacFarlane | |
Partially addresses #252. This fixes the infinite loop, and brings the JS parser into agreement with cmark, but both still have bad output in this case, so more work is needed. | |||
2014-12-25 | Improved rules for emphasis and strong emphasis. | John MacFarlane | |
This improves parsing of emphasis around punctuation. Background: http://talk.commonmark.org/t/emphasis-inside-strong-broken-in-js-implementation-when-parenthesis-involved/903/6 The basic idea of the change is that if the delimiter is part of a delimiter clump that has punctuation to the left and a normal character (non-space, non-punctuation) to the right, it can only be an opener. If it has punctuation to the right and a normal character (non-space, non-punctuation) to the left, it can only be a closer. This handles cases like **Gomphocarpus (*Gomphocarpus physocarpus*, syn. *Asclepias physocarpa*)** and **foo "*bar*" foo** better than before. The spec section on Emphasis and Strong Emphasis has been extensively revised. The C and JS implementations have been brought up to date, and all tests pass. | |||
2014-12-24 | Use python2 for man, test scripts. | John MacFarlane | |
Closes #251. | |||
2014-12-24 | Fixed make_man_page.py so it works with both python2 and python3. | John MacFarlane | |
Closes #251. | |||
2014-12-23 | Added definitions of whitespace and other character classes. | John MacFarlane | |
Closes #108. | |||
2014-12-23 | Made spec_tests.py more DRY. | John MacFarlane | |
Factored test selection logic out of do_tests. Eliminated do_tests, putting the (now very short) code into main. Improves 1ba4822 @cirosantilli | |||
2014-12-22 | Added HTML normalization tests to test/CMakeLists.txt. | John MacFarlane | |
Removed from .travis.yml. This should be a standard part of the test suite. See #245. | |||
2014-12-22 | Fixed normalization bug, added more doctests for normalization. | John MacFarlane | |
* The tests test for removal of whitespace around block-level tags. * Previously whitespace wasn't removed before an initial block-level tag; this commit fixes that. * Also revised wording so it's clear that whitespace is removed on both sides of block-level tags. Closes #246 in a slightly different way. | |||
2014-12-22 | spec_tests.py: make --dump-tests sensitive to --pattern, --number. | John MacFarlane | |
Closes #249 in a slightly different way. |