Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-11-09 | Fixed problem with images. | John MacFarlane | |
2014-11-09 | Fixed allocation issue. | John MacFarlane | |
2014-11-09 | Got ref links working, but with deallocation issues. | John MacFarlane | |
2014-11-09 | Got inline links working. | John MacFarlane | |
2014-11-09 | Initial steps towards link parsing. | John MacFarlane | |
2014-11-09 | Simplified 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-07 | Removed unused emphasis_nestlevel. | John MacFarlane | |
2014-11-07 | Factored out push_delimiter. | John MacFarlane | |
Conflicts: src/inlines.c | |||
2014-11-07 | Replace parse_inlines_while with parse_inlines_from_subject. | John MacFarlane | |
2014-11-07 | Shared library is again libcmark. | John MacFarlane | |
2014-11-07 | More cmake cleanup. | John MacFarlane | |
2014-11-07 | Fixed compiler warnings in cmake. | John MacFarlane | |
2014-11-07 | Moved include file check to src/CMakeLists.txt. | John MacFarlane | |
2014-11-07 | Removed old man/CMakeLists.txt. | John MacFarlane | |
2014-11-07 | Added cmake_minimum_version to src/CMakeLists.txt. | John MacFarlane | |
2014-11-07 | Reformatted src/CMakeLists.txt. | John MacFarlane | |
2014-11-06 | Merge branch 'cmake' | John MacFarlane | |
Conflicts: Makefile | |||
2014-11-06 | More cmake improvements. | John MacFarlane | |
2014-11-06 | Removed unnecessary C99-ism. | John MacFarlane | |
2014-11-06 | Removed unnecessary C99-ism. | John MacFarlane | |
2014-11-06 | cmake: Create and install shared library. | John MacFarlane | |
2014-11-06 | Quick 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-06 | Use non-recursive algorithm for process_inlines. | John MacFarlane | |
Closes #187. | |||
2014-11-06 | Made blocks_to_html non-recursive (using a stack). | John MacFarlane | |
This will help avoid stack overflows with deeply nested structures. See #187. | |||
2014-11-06 | buffer: added strbuf_rtrim function. | John MacFarlane | |
2014-11-06 | Reformatted code consistently. | John MacFarlane | |
2014-11-06 | HTML renderer: render alt text as plain, unformatted string. | John MacFarlane | |
2014-11-06 | Use render stack for inline links. | John MacFarlane | |
2014-11-05 | Use regular strings for literal in render_stack. | John MacFarlane | |
2014-11-05 | Use stack approach for rendering strong, emph. | John MacFarlane | |
2014-11-05 | Added basic infrastructure for render_stack. | John MacFarlane | |
2014-11-05 | Give warning on unknown inline type. | John MacFarlane | |
2014-11-05 | Improved free_inlines. | John MacFarlane | |
2014-11-05 | Made block-freeing slightly more efficient by using last_child. | John MacFarlane | |
2014-11-05 | Made cmark_free_nodes non-recursive. | John MacFarlane | |
See #187. | |||
2014-11-05 | Removed stack limits in inline parsing. | John MacFarlane | |
This brings back segfaults, but we're now aiming for a better solution, revising the renderer so it doesn't use recursion, and using a stack approach for nested brackets. Removing these limits will allow us to know when we've got it right. See #166, #187. | |||
2014-11-05 | free_inlines: use non-recursive algorithm. | John MacFarlane | |
This will help avoid stack overflows in deeply nested structures. Partially addresses #187 (still need to do renderers). | |||
2014-11-05 | Removed recursive call to handle_strong_emph. | John MacFarlane | |
Closes #186 - in a somewhat different way than in the PR. This is simpler and I don't see any significant impact on performance in my tests. | |||
2014-11-03 | Removed artificial rule for emph/strong markers. | John MacFarlane | |
Previously there was a rule that nothing in a string of more than 3 `*` or `_` characters could close or start emphasis. This was artifical and led to strange asymmetries, e.g. you could have `*a *b**` emph within emph but not `**a **b****` strong within strong. The new parsing strategy makes it easy to remove this limitation. Spec, js, and c implementations have been updated. Spec might need some further grooming. | |||
2014-10-31 | Merge branch 'master' into cmake | John MacFarlane | |
2014-10-28 | Disallow bracketed labels nested more than 1000 deep. | John MacFarlane | |
For performance reasons. See #166. | |||
2014-10-28 | Changed EMPHASIS_STACK_LIMIT -> STACK_LIMIT. | John MacFarlane | |
We'll also use it in parsing bracketed link labels. | |||
2014-10-28 | Rename number_of_emphasis_openers -> emphasis_nestlevel. | John MacFarlane | |
2014-10-26 | Require space before closing # sequence in ATX header. | John MacFarlane | |
Closes #169. | |||
2014-10-26 | Add EMPHASIS_STACK_LIMIT. | John MacFarlane | |
If we get more than 1000 deep in potential emphasis/strong emphasis openers, we refuse to add more to the stack. This prevents the sort of stack overflow we previously got with python -c 'print "*a **a " * 100000; print " a** a*" * 100000' | ./cmark Partially addresses #166. | |||
2014-10-25 | CMakeLists tweaks. | John MacFarlane | |
Use compiler optimizations, -Wall, -Werror. | |||
2014-10-25 | config.h unnecessary for now. | John MacFarlane | |
2014-10-25 | Removed obsolete src/getopt.c; modified CMake build accordingly. | John MacFarlane | |
2014-10-25 | Merge branch 'cmake-build' of https://github.com/gittiver/stmd into ↵ | John MacFarlane | |
gittiver-cmake-build Conflicts: .gitignore | |||
2014-10-24 | Renamed c program and library stmd -> cmark. | John MacFarlane | |
Also renamed internal library functions accordingly. |