summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-03-26Fixed HTML blocks.John MacFarlane
2015-03-26commonmark renderer: handle tight/loose list distinction.John MacFarlane
2015-03-26commonmark renderer: proper numbering for ordered lists.John MacFarlane
2015-03-25Merge pull request #20 from nwellnhof/re2c_warningJohn MacFarlane
Warn about buggy re2c versions
2015-03-25Warn about buggy re2c versionsNick Wellnhofer
2015-03-23Added TODO on tight lists.John MacFarlane
2015-03-23Made CommonMark renderer sensitive to CMARK_OPT_HARDBREAKS.John MacFarlane
Note that width is automatically set to 0 if CMARK_OPT_HARDBREAKS is specified.
2015-03-22Initialize width.John MacFarlane
2015-03-21CommonMark renderer: Added 'width' parameter.John MacFarlane
This controls column width for hard wrapping. By default it is 0, which means that no wrapping will be done. Added a width parameter in `cmark_render_commonmark`.
2015-03-21CommonMark renderer: use right number of backticks in quoting code.John MacFarlane
We ensure that we use one more backtick then the longest backtick string in the code.
2015-03-21CommonMark writer: support title on link, image.John MacFarlane
2015-03-21CommonMark renderer: improved code blocks.John MacFarlane
* Use indented code block if no info. * Print info string on fenced blocks.
2015-03-21CommonMark renderer: don't wrap headers.John MacFarlane
2015-03-21Commonmark renderer: improved escaping.John MacFarlane
2015-03-21Update README on output formats.John MacFarlane
2015-03-21Updated output formats in man page.John MacFarlane
Closes #16.
2015-03-21Added commonmark renderer.John MacFarlane
This is still incomplete. (See TODOs in the source.)
2015-03-21test/cmark.py: set default options for markdown_to_html.John MacFarlane
2015-03-21leakcheck with all formatsJohn MacFarlane
2015-03-15Removed obsolete reference to CMARK_NODE_LINK_LABEL.John MacFarlane
2015-03-15Added options parameter to cmark_markdown_to_html.John MacFarlane
2015-03-11Merge pull request #13 from nwellnhof/documentation-fixJohn MacFarlane
Update code examples in documentation
2015-03-11Use CMARK_OPT_DEFAULT in code examplesNick Wellnhofer
2015-03-11Update code examples in documentationNick Wellnhofer
Add new parser option argument.
2015-03-09Check for CMAKE_C_COMPILER (not CC_COMPILER) when setting C flags.John MacFarlane
2015-03-09Updated changelog.John MacFarlane
2015-03-09Version to 0.18.1.John MacFarlane
2015-03-09Use libcmark.a for static library on *nix.John MacFarlane
Use cmark_static on Windows as before. See #11.
2015-03-09cmark.h: Add argument to cmark_parser_new.John MacFarlane
This was a bug; the function does take an argument. Oddly, gcc and clang did not complain. Closes #12.
2015-03-07Build static version of library in default build.John MacFarlane
The static library will be named (lib)cmark_static. Closes #11.
2015-03-03astyle changes.John MacFarlane
2015-03-03Updated version to 0.18.John MacFarlane
2015-03-03Updated changelog.John MacFarlane
2015-03-03Updated spec in test.John MacFarlane
2015-02-23Merge pull request #10 from nwellnhof/aflJohn MacFarlane
Add Makefile target to fuzz with AFL
2015-02-23Add Makefile target to fuzz with AFLNick Wellnhofer
Also add a compact test case. As far as I understand, a good test case should exercise many code paths while being as small as possible. There's probably still room for improvement. The variable $AFL_PATH must point to the directory containing the AFL binaries. It can be set as an environment variable or passed to make on the command line.
2015-02-20Cleaned up some comments.John MacFarlane
2015-02-19Fixed 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-19Added '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-19Fixed 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-18Repacked delimiter struct to avoid hole.John MacFarlane
2015-02-18Updated benchmarks.John MacFarlane
2015-02-18Packed cmark_node struct to fit into 128 bytes.John MacFarlane
This gives a small performance boost (0.37 to 0.36).
2015-02-17Moved a test outside a loop.John MacFarlane
2015-02-16Added more --smart test cases.John MacFarlane
2015-02-16Rename CMARK_OPT_SMARTPUNCT -> CMARK_OPT_SMART.John MacFarlane
2015-02-16Made 'options' an int rather than a long.John MacFarlane
For consistency with the API.
2015-02-16Use ascii escapes for punctuation characters for portability.John MacFarlane
2015-02-16Don't require python3 to make cmark.3 man page.John MacFarlane
2015-02-16Move normalization step from main to cmark_parser_finish.John MacFarlane