Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-03-29 | Fixes one-off error in previous commit. | John MacFarlane | |
2015-03-29 | commonmark - use space after delim if code is empty. | John MacFarlane | |
2015-03-29 | commonmark - use fenced code blocks if code starts/ends with blank. | John MacFarlane | |
2015-03-29 | commonmark renderer: special case EMPH(EMPH(x)). | John MacFarlane | |
This needs to be rendered `*_x_*` rather than `**x**`. | |||
2015-03-29 | commonmark renderer - better inline code. | John MacFarlane | |
Use the minimum number of backticks as delimiter, and include a space only if needed. | |||
2015-03-29 | commonmark renderer - fixed calculation of number of backticks in code. | John MacFarlane | |
2015-03-29 | Removed obsolete TODO comment. | John MacFarlane | |
2015-03-29 | commonmark renderer - two blank lines after list before code/list. | John MacFarlane | |
2015-03-29 | commonmark renderer - escaping improvements. | John MacFarlane | |
2015-03-28 | commonmark rendere: more fine-grained control over escaping. | John MacFarlane | |
2015-03-28 | commonmark renderer: better escaping of `#`. | John MacFarlane | |
2015-03-27 | More TODOs in commonmark renderer. | John MacFarlane | |
2015-03-27 | Added TODO comment to commonmark renderer. | John MacFarlane | |
2015-03-27 | Removed an unnecessary check. | John MacFarlane | |
By the time we check for a list start, we've already checked for an HRULE, so we don't need to repeat that check here. Thanks to Robin Stocker for pointing out a similar redundancy in commonmark.js. | |||
2015-03-26 | Fixed HTML blocks. | John MacFarlane | |
2015-03-26 | commonmark renderer: handle tight/loose list distinction. | John MacFarlane | |
2015-03-26 | commonmark renderer: proper numbering for ordered lists. | John MacFarlane | |
2015-03-23 | Added TODO on tight lists. | John MacFarlane | |
2015-03-23 | Made 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-22 | Initialize width. | John MacFarlane | |
2015-03-21 | CommonMark 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-21 | CommonMark 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-21 | CommonMark writer: support title on link, image. | John MacFarlane | |
2015-03-21 | CommonMark renderer: improved code blocks. | John MacFarlane | |
* Use indented code block if no info. * Print info string on fenced blocks. | |||
2015-03-21 | CommonMark renderer: don't wrap headers. | John MacFarlane | |
2015-03-21 | Commonmark renderer: improved escaping. | John MacFarlane | |
2015-03-21 | Added commonmark renderer. | John MacFarlane | |
This is still incomplete. (See TODOs in the source.) | |||
2015-03-15 | Removed obsolete reference to CMARK_NODE_LINK_LABEL. | John MacFarlane | |
2015-03-15 | Added options parameter to cmark_markdown_to_html. | John MacFarlane | |
2015-03-11 | Use CMARK_OPT_DEFAULT in code examples | Nick Wellnhofer | |
2015-03-11 | Update code examples in documentation | Nick Wellnhofer | |
Add new parser option argument. | |||
2015-03-09 | Check for CMAKE_C_COMPILER (not CC_COMPILER) when setting C flags. | John MacFarlane | |
2015-03-09 | Use libcmark.a for static library on *nix. | John MacFarlane | |
Use cmark_static on Windows as before. See #11. | |||
2015-03-09 | cmark.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-07 | Build static version of library in default build. | John MacFarlane | |
The static library will be named (lib)cmark_static. Closes #11. | |||
2015-03-03 | astyle changes. | John MacFarlane | |
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 | 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 | 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 | 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 | 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 | |