summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-11-12Moved man install target to main CMakeLists.txt.John MacFarlane
2014-11-11Improved cmark_markdown_to_html.John MacFarlane
Added length parameter so we can avoid strlen. Properly free buffer.
2014-11-11Added cmark_markdown_to_html with a simple interface.John MacFarlane
See #70.
2014-11-11Added macro def needed for cpp.John MacFarlane
2014-11-11Don't include debug.h in any production code.John MacFarlane
It uses some GNU-specific things.
2014-11-10html_unescape: Made find_entity staticJohn MacFarlane
2014-11-10Define _CMARK_H_ instead of _STDMD_H_.John MacFarlane
2014-11-10Fixed memory allocation bug.John MacFarlane
2014-11-10Allow images to contain images.John MacFarlane
2014-11-10Variable renaming in inlines.c.John MacFarlane
2014-11-09Fixed bug.John MacFarlane
Need to remove open delimiters from the stack when they don't match for a link.
2014-11-09Restored priority of links over emphasis grouping.John MacFarlane
Now when we encounter (possibly) closing `*` or `_` delimiters, we simply add them to the delimiters stack. This gets processed by `process_emphasis` either (a) when a link is created (in which case only the inlines created by the link are processed) or at the end of processing a run of inlines.
2014-11-09Added MAX_LINK_LABEL_LENGTH to cmark.h.John MacFarlane
Use in link label parsing and reference lookup.
2014-11-09Removed some unused code.John MacFarlane
2014-11-09Disallow links inside links and images inside images.John MacFarlane
2014-11-09Fixed backslash-escape inside link label.John MacFarlane
Down to 8 failures, all cases where the spec will need to be changed to reflect lack of priority of links over emphasis.
2014-11-09Fixed problem with images.John MacFarlane
2014-11-09Fixed allocation issue.John MacFarlane
2014-11-09Got ref links working, but with deallocation issues.John MacFarlane
2014-11-09Got inline links working.John MacFarlane
2014-11-09Initial steps towards link parsing.John MacFarlane
2014-11-09Simplified link_label parser.John MacFarlane
It now just scans for an unescaped `]`. No `[` characters are permitted in labels. Backticks don't have their usual meaning in labels. This accords with the behavior of some of the main Markdown parsers: marked, sundown, discount, kramdown, showdown, Markdown.pl, PHP Markdown.
2014-11-07Removed unused emphasis_nestlevel.John MacFarlane
2014-11-07Factored out push_delimiter.John MacFarlane
Conflicts: src/inlines.c
2014-11-07Replace parse_inlines_while with parse_inlines_from_subject.John MacFarlane
2014-11-07Shared library is again libcmark.John MacFarlane
2014-11-07More cmake cleanup.John MacFarlane
2014-11-07Fixed compiler warnings in cmake.John MacFarlane
2014-11-07Moved include file check to src/CMakeLists.txt.John MacFarlane
2014-11-07Removed old man/CMakeLists.txt.John MacFarlane
2014-11-07Added cmake_minimum_version to src/CMakeLists.txt.John MacFarlane
2014-11-07Reformatted src/CMakeLists.txt.John MacFarlane
2014-11-06Merge branch 'cmake'John MacFarlane
Conflicts: Makefile
2014-11-06More cmake improvements.John MacFarlane
2014-11-06Removed unnecessary C99-ism.John MacFarlane
2014-11-06Removed unnecessary C99-ism.John MacFarlane
2014-11-06cmake: Create and install shared library.John MacFarlane
2014-11-06Quick fix to #168.John MacFarlane
Ultimately we'll have a better (stack-based?) parser for links, and we can have something more elegant. This fix removes an optimization which gave wrong results for `*hi [there*]`.
2014-11-06Use non-recursive algorithm for process_inlines.John MacFarlane
Closes #187.
2014-11-06Made blocks_to_html non-recursive (using a stack).John MacFarlane
This will help avoid stack overflows with deeply nested structures. See #187.
2014-11-06buffer: added strbuf_rtrim function.John MacFarlane
2014-11-06Reformatted code consistently.John MacFarlane
2014-11-06HTML renderer: render alt text as plain, unformatted string.John MacFarlane
2014-11-06Use render stack for inline links.John MacFarlane
2014-11-05Use regular strings for literal in render_stack.John MacFarlane
2014-11-05Use stack approach for rendering strong, emph.John MacFarlane
2014-11-05Added basic infrastructure for render_stack.John MacFarlane
2014-11-05Give warning on unknown inline type.John MacFarlane
2014-11-05Improved free_inlines.John MacFarlane
2014-11-05Made block-freeing slightly more efficient by using last_child.John MacFarlane