Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-02-20 | Cleaned up some comments. | John MacFarlane | |
2015-02-19 | Fixed use-after-free error. | John MacFarlane | |
Closes #9, confirmed with ASAN. Avoid using `parser->current` in the loop that creates new blocks, since `finalize` in `add_child` may have removed the current parser (if it contains only reference definitions). This isn't a great solution; in the long run we need to rewrite to make the logic clearer and to make it harder to make mistakes like this one. | |||
2015-02-19 | Added 'Asan' build type. | John MacFarlane | |
`make asan` will link against ASan; the resulting executable will do checks for memory access issues. Thanks @JordanMilne for the suggestion. | |||
2015-02-19 | Fixed use-after-free bug. | John MacFarlane | |
This arose when a paragraph containing only reference links and blank space was finalized. Finalization would remove the node. `finalize` returns the parent node, but the problem arose because we had both `cur` and `parser->current`, and only one was being updated. Solution: remove `cur`, which is a holdover from before we had `parser->current`. I believe this will close #9 -- @JordanMilne can you test and confirm? | |||
2015-02-18 | Repacked delimiter struct to avoid hole. | John MacFarlane | |
2015-02-18 | Updated benchmarks. | John MacFarlane | |
2015-02-18 | Packed cmark_node struct to fit into 128 bytes. | John MacFarlane | |
This gives a small performance boost (0.37 to 0.36). | |||
2015-02-17 | Moved a test outside a loop. | John MacFarlane | |
2015-02-16 | Added more --smart test cases. | John MacFarlane | |
2015-02-16 | Rename CMARK_OPT_SMARTPUNCT -> CMARK_OPT_SMART. | John MacFarlane | |
2015-02-16 | Made 'options' an int rather than a long. | John MacFarlane | |
For consistency with the API. | |||
2015-02-16 | Use ascii escapes for punctuation characters for portability. | John MacFarlane | |
2015-02-16 | Don't require python3 to make cmark.3 man page. | John MacFarlane | |
2015-02-16 | Move normalization step from main to cmark_parser_finish. | John MacFarlane | |
2015-02-16 | Properly handle " with no matching close quote with --smart. | John MacFarlane | |
This occurs in fiction: when a speaker has dialogue with multiple paragraphs, a close quote is used only on the final one. Added test cases. | |||
2015-02-15 | Fixed man escaping for unicode characters. | John MacFarlane | |
2015-02-15 | Proper escaping of smart punctuation in man writer. | John MacFarlane | |
2015-02-15 | Removed unneeded include. | John MacFarlane | |
2015-02-15 | Removed outdated statement in man page. | John MacFarlane | |
`--smart` now affects XML output too. | |||
2015-02-15 | Moved handling of --smart from renderer to parser. | John MacFarlane | |
This allows backslash escapes to disable smart quote transformations in particular cases. Closes #8. | |||
2015-02-15 | Added options parameter to cmark_parse_document, cmark_parse_file. | John MacFarlane | |
Also to some non-exported functions in blocks and inlines. | |||
2015-02-15 | Moved normalization step from XML renderer to main. | John MacFarlane | |
2015-02-15 | Fixed segfault with --normalize (closes #7). | John MacFarlane | |
This bug was introduced after the modification in 009c3847f004fda437dd5376a9452973b1cb913e. | |||
2015-02-15 | Man page updates. | John MacFarlane | |
2015-02-15 | Implemented --smart for man output. | John MacFarlane | |
2015-02-15 | Further improvements and small optimizations in smart punctuation code. | John MacFarlane | |
2015-02-15 | Optimized --smart. | John MacFarlane | |
Previously we had 0.24s on the benchmark without `--smart`, 0.38s with it. Now we have 0.27s with `--smart`, so `--smart` has only a small performance impact. | |||
2015-02-14 | Added smart.c, smart.h with function abstracting smart punct rendering. | John MacFarlane | |
Also fixed some bugs in earlier smart handling. Now handles UTF-8. | |||
2015-02-14 | astyle changes (code formatting only). | John MacFarlane | |
2015-02-14 | Updated man page for --smart. | John MacFarlane | |
2015-02-14 | Improved smart quote recognition. | John MacFarlane | |
All tests now pass. | |||
2015-02-14 | Added test for --smart option. | John MacFarlane | |
Currently one test fails. | |||
2015-02-14 | Added CMARK_OPT_SMARTPUNCT and --smart option. | John MacFarlane | |
So far this is only implemented for the HTML renderer. Ultimately some of this should be factored out into a form that can be used in other renderers. | |||
2015-02-13 | Updated scanners for new whitespace definition. | John MacFarlane | |
2015-02-13 | Updated test/spec.txt. | John MacFarlane | |
2015-02-04 | Use try.commonmark.org for dingus address. | John MacFarlane | |
2015-02-02 | Merge pull request #5 from nwellnhof/zap_strnlen | John MacFarlane | |
Don't rely on strnlen being available | |||
2015-02-02 | Don't rely on strnlen being available | Nick Wellnhofer | |
2015-01-31 | Updated spec.txt from CommonMark repo. | John MacFarlane | |
2015-01-31 | Fixed autolink scanner to conform to the spec. | John MacFarlane | |
Backslash escapes not allowed in autolinks. | |||
2015-01-28 | Update cmark.3 man page. | John MacFarlane | |
Only the date changed, but this is needed to avoid building the page on a git checkout. | |||
2015-01-28 | Added Profile build type, 'make prof' target. | John MacFarlane | |
2015-01-25 | Adjust benchmarks for commonmark.js. | John MacFarlane | |
2015-01-25 | Fixed license in README.md. | John MacFarlane | |
2015-01-25 | Fixed link to spec. | John MacFarlane | |
2015-01-25 | COPYING - added license for test/spec.txt and python code in test/. | John MacFarlane | |
2015-01-25 | Use 2-clause BSD license. | John MacFarlane | |
The legal implications of the 3rd clause seem too unclear. | |||
2015-01-25 | Removed JavaScript specific licenses in COPYING. | John MacFarlane | |
2015-01-24 | Improved README with note on wrappers. | John MacFarlane | |
2015-01-24 | Added reference to benchmarks in README. | John MacFarlane | |