Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-05-29 | Cope with broken snprintf on Windows | Nick Wellnhofer | |
On Windows, snprintf returns -1 if the output was truncated. Fall back to Windows-specific _scprintf. | |||
2015-05-29 | Added Ubsan build target, to check for undefined behavior. | John MacFarlane | |
2015-05-14 | Allow NULL value in string setters | Nick Wellnhofer | |
Supersedes pull request #34. | |||
2015-05-14 | Store link URL and title as cmark_chunk | Nick Wellnhofer | |
2015-05-07 | cmark_consolidate_text_nodes: Avoid an unnecessary string allocation. | John MacFarlane | |
2015-05-07 | Multiple issues with numeric entities | Nick Wellnhofer | |
This closes #33. | |||
2015-05-06 | cmark_consolidate_text_nodes: avoid some unnecessary allocation. | John MacFarlane | |
This improves on #32, I think. @elibarzilay, does this look better? We now avoid the allocations associated with cmark_get_literal, and copy directly from the chunk to the buffer. | |||
2015-05-04 | Better solution for memory leak in `cmark_consolidate_text_nodes`. | John MacFarlane | |
This avoids allocating a new string. Closes #32. | |||
2015-05-04 | Straightforward fix for memory leak #32. | John MacFarlane | |
2015-04-27 | Fixed _ emphasis parsing to conform to spec. | John MacFarlane | |
See jgm/CommonMark#317. | |||
2015-04-26 | Suppress warnings about Windows runtime library files | Nick Wellnhofer | |
Visual Studio Express editions do not include the redistributable files. Set CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS to suppress warnings. | |||
2015-04-26 | Compile static library with -DCMARK_STATIC_DEFINE | Nick Wellnhofer | |
Fixes warnings on Windows. | |||
2015-04-25 | Revert "CMakeLists.txt: quote variable to avoid warning." | John MacFarlane | |
This reverts commit 890a926dec02d8f024a4492248dbff4f84d37ff2. Conflicts: src/CMakeLists.txt | |||
2015-04-25 | Really fixed cmake warning. | John MacFarlane | |
2015-04-25 | CMakeLists.txt: quote variable to avoid warning. | John MacFarlane | |
2015-04-19 | astyle reformatting. | John MacFarlane | |
2015-04-16 | Pass-through Unicode non-characters | Nick Wellnhofer | |
Despite their name, Unicode non-characters are valid code points. They should be passed through by a library like libcmark. | |||
2015-04-15 | Check return status of utf8proc_iterate. Closes #27. | John MacFarlane | |
If unicode parsing gives an error condition, we just skip the rest of the string without rendering anything and proceed. I'm not sure if that's the best way to handle this, but garbage in, garbage out. Note: this bug was found using american fuzzy lop. | |||
2015-04-01 | Include patch level in soname | Nick Wellnhofer | |
Minor version is tied to spec version, so this allows to break the ABI between spec releases. | |||
2015-03-31 | Merge pull request #24 from yangcha/master | John MacFarlane | |
Install compiler-provided system runtime libraries. | |||
2015-03-31 | Install compiler-provided system runtime libraries. | Changjiang Yang | |
2015-03-30 | Use strbuf_printf instead of snprintf. | John MacFarlane | |
snprintf is not available on some platforms. | |||
2015-03-30 | Fixed memory issue. | John MacFarlane | |
This fixes valgrind "invalid read of size 1" on input `[link](<>)`. | |||
2015-03-30 | snprintf is not implemented in Visual Studio 2013 or earlier. Use _snprintf ↵ | Changjiang Yang | |
instead. | |||
2015-03-30 | Modified copyright message with --version. | John MacFarlane | |
2015-03-29 | commonmark - use strlen not strnlen for portability. | John MacFarlane | |
strlen should be safe here, as we use it on strings generated by cmark_chunk_to_cstr and these should be null terminated. | |||
2015-03-29 | commonmark renderer - render links as autolinks when appropriate. | John MacFarlane | |
2015-03-29 | Scanners: added _scan_scheme, scan_scheme. | John MacFarlane | |
This is used in the commonmark renderer. | |||
2015-03-29 | Fixed bug in cmark_strbuf_unescape (buffer.c). | John MacFarlane | |
The old function called 'continue' when seeing a backslash, but this gave incorrect results on input like: \\* since the next backslash would be treated as escaping the `*` instead of being escaped itself. | |||
2015-03-29 | Don't wrap inline HTML. | John MacFarlane | |
2015-03-29 | commonmark renderer - improved tight list detection. | John MacFarlane | |
2015-03-29 | commonmark writer - more tight list fixes. | John MacFarlane | |
Avoid losing blank line *before* a tight list, by adjusting `state->in_tight_list_item` only *after* we've started the first list item. | |||
2015-03-29 | commonmark - don't use indented code if first thing in list item. | John MacFarlane | |
2015-03-29 | commonmark renderer - don't escape in fenced code blocks. | John MacFarlane | |
2015-03-29 | commonmark - properly escape literal backticks. | John MacFarlane | |
2015-03-29 | commonmark renderer - honor softbreak if width == 0. | John MacFarlane | |
2015-03-29 | commonmark renderer - fixed memory access error. | John MacFarlane | |
2015-03-29 | commonmark - improved tight list rendering. | John MacFarlane | |
2015-03-29 | commonmark - use * for bullet list to avoid clash with setext header. | John MacFarlane | |
E.g. with a paragraph followed immediately by a list item with no content. | |||
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 | |