Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-12-12 | Revert "Removed CMARK_NODE_REFERENCE_DEF from API." | John MacFarlane | |
This reverts commit b598b52a4acdc2332be3d34e30237d1b93b7dd03. The change led to some problems, because some of the callers of 'finalize' expected the node to exist after the call. This could all be rewritten, but for now let's just revert. | |||
2014-12-12 | Rudimentary documentation for cmark_walk. | John MacFarlane | |
2014-12-12 | Removed CMARK_NODE_REFERENCE_DEF from API. | John MacFarlane | |
There's no reason to store these empty nodes in the API. The references have already been resolved. | |||
2014-12-12 | Rewrote HTML renderer using cmark_walk. | John MacFarlane | |
This version is shorter, more readable, and more regular. It should serve as a template for creating new writers. Performance is the same. All tests pass. | |||
2014-12-12 | Added cmark_node_handler and cmark_walk to header. | John MacFarlane | |
2014-12-08 | Merge pull request #238 from nwellnhof/fix_warnings | John MacFarlane | |
Fix warnings | |||
2014-12-08 | Compile with -Wextra | Nick Wellnhofer | |
2014-12-08 | Fix last_line_blank logic | Nick Wellnhofer | |
The broken last_line_blank logic could lead to random failures in the API tests. | |||
2014-12-08 | Create html_unescape.h with extra struct initializers | Nick Wellnhofer | |
Fixes missing initializer warnings. | |||
2014-12-05 | Revert "API change: Add cmark_node_set_type for completeness." | John MacFarlane | |
This reverts commit 6c1f76a8a22f6c84231e5101f0950ce353ec8075. | |||
2014-12-05 | API change: Add cmark_node_set_type for completeness. | John MacFarlane | |
2014-12-05 | node.c: Make sure no functions segfault if passed null pointers. | John MacFarlane | |
2014-12-05 | Changed CMARK_NODE_NONE from -1 to 0. | John MacFarlane | |
This is more consistent with CMARK_LIST_NONE, etc. | |||
2014-12-05 | Added CMARK_NODE_TYPE_NONE. | John MacFarlane | |
This is the return value of cmark_get_node_type when the argument is a null pointer. Avoids segfault. | |||
2014-12-04 | Added "chunk.h" include to scanners.h. | John MacFarlane | |
2014-12-04 | Moved source files from src/html into src. | John MacFarlane | |
The separate directory presents problems for some simple extension building systems, like luarocks. | |||
2014-12-04 | Create pkg-config file as part of build procedure. | John MacFarlane | |
Closes #234. | |||
2014-12-02 | Fix EOF detection | Nick Wellnhofer | |
Fixes issue with Ctrl-D having to be pressed twice when reading from terminal. | |||
2014-12-01 | Added src/scanners.c to repository. | John MacFarlane | |
This reduces build dependencies and should help avoid issues like | |||
2014-12-01 | Use `--no-generation-date` with `re2c`. | John MacFarlane | |
2014-12-01 | Changed build procedure so that an empty scanners.c is not created | John MacFarlane | |
if `re2c` is missing. Closes #231. | |||
2014-11-30 | More man page improvements. | John MacFarlane | |
2014-11-30 | Make the man pages standard groff man rather than mdoc. | John MacFarlane | |
2014-11-30 | Fixed bug in splitting arguments in make_man_page.py. | John MacFarlane | |
2014-11-30 | Create man 3 page without markdown intermediary. | John MacFarlane | |
Use proper man style, marking function types, arguments, etc. See #224. | |||
2014-11-30 | Added blank line in comment. | John MacFarlane | |
2014-11-30 | cmark.h: Use C89 comments. | John MacFarlane | |
2014-11-30 | Renamed cmark_parser_push -> cmark_parser_feed. | John MacFarlane | |
2014-11-30 | Rename member first_inline to inl_text in struct delimiter | Nick Wellnhofer | |
2014-11-30 | Eliminate delim_count in struct delimiter | Nick Wellnhofer | |
Use literal length instead. | |||
2014-11-30 | Simplify remove_delimiter | Nick Wellnhofer | |
2014-11-30 | Simplify push_delimiter | Nick Wellnhofer | |
Always modify the subject when pushing a delimiter. | |||
2014-11-30 | Rename delimiter_stack to delimiter | Nick Wellnhofer | |
The struct actually describes a delimiter. I also find it conceptually much clearer to think of a doubly linked list of delimiters than a stack. | |||
2014-11-29 | Annotated cmark.h with some markdown headers etc. for man page. | John MacFarlane | |
2014-11-29 | Merge pull request #227 from nwellnhof/process_emph | John MacFarlane | |
Optimize and clarify process_emph | |||
2014-11-29 | Check for `[` character in `link_label`. | John MacFarlane | |
Closes #226. | |||
2014-11-29 | Clarify code in insert_emph | Nick Wellnhofer | |
2014-11-29 | Add local variable for closer inline | Nick Wellnhofer | |
2014-11-29 | Optimize emph insertion | Nick Wellnhofer | |
Avoid unnecessary malloc/free if opener is removed. | |||
2014-11-29 | Remove redundant code | Nick Wellnhofer | |
next/prev pointers are handled by cmark_node_free. | |||
2014-11-29 | Split process_emphasis into two functions | Nick Wellnhofer | |
Makes the code more readable. | |||
2014-11-29 | Fix prev pointer of emph->first_child | Nick Wellnhofer | |
2014-11-29 | Push parser interface | Nick Wellnhofer | |
Replace cmark_parser_process_line with cmark_parser_push that takes arbitrary chunks of data. Also fixes #211. | |||
2014-11-28 | Framework for using doxygen to generate API docs. | John MacFarlane | |
Added Makefile target for doxygen-generated man page. Added Doxyfile. Added man/man3/cmark.3 (generated by doxygen) to install targets. | |||
2014-11-28 | Removed cmark_free_nodes from public API. | John MacFarlane | |
Replace it with static S_free_nodes. | |||
2014-11-28 | Renamed identifiers in public API: | John MacFarlane | |
cmark_doc_parser => cmark_parser cmark_new_doc_parser => cmark_parser_new cmark_free_doc_parser => cmark_parser_free cmark_finish => cmark_parser_finish cmark_process_line => cmark_parser_process_line cmark_node_destroy => cmark_node_free Closes #223. | |||
2014-11-28 | Clarified logic in remove_delimiter. | John MacFarlane | |
Motivated by warnings from clang static analyzer. | |||
2014-11-28 | Avoid potential memory leak. | John MacFarlane | |
Previously, if malloc failed to allocate 'newstack', the function would return without freeing 'stack'. Pointed out by clang static analyzer. | |||
2014-11-28 | Removed unnecessary assignment. | John MacFarlane | |
Clang static analyzer pointed out that the value assigned to 'pos' is never read. | |||
2014-11-28 | Remove outdated public short name macros | Nick Wellnhofer | |