summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-12-12Rudimentary documentation for cmark_walk.John MacFarlane
2014-12-12Removed 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-12Rewrote 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-12Added cmark_node_handler and cmark_walk to header.John MacFarlane
2014-12-08Merge pull request #238 from nwellnhof/fix_warningsJohn MacFarlane
Fix warnings
2014-12-08Compile with -WextraNick Wellnhofer
2014-12-08Fix last_line_blank logicNick Wellnhofer
The broken last_line_blank logic could lead to random failures in the API tests.
2014-12-08Create html_unescape.h with extra struct initializersNick Wellnhofer
Fixes missing initializer warnings.
2014-12-05Revert "API change: Add cmark_node_set_type for completeness."John MacFarlane
This reverts commit 6c1f76a8a22f6c84231e5101f0950ce353ec8075.
2014-12-05API change: Add cmark_node_set_type for completeness.John MacFarlane
2014-12-05node.c: Make sure no functions segfault if passed null pointers.John MacFarlane
2014-12-05Changed CMARK_NODE_NONE from -1 to 0.John MacFarlane
This is more consistent with CMARK_LIST_NONE, etc.
2014-12-05Added 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-04Added "chunk.h" include to scanners.h.John MacFarlane
2014-12-04Moved source files from src/html into src.John MacFarlane
The separate directory presents problems for some simple extension building systems, like luarocks.
2014-12-04Create pkg-config file as part of build procedure.John MacFarlane
Closes #234.
2014-12-02Fix EOF detectionNick Wellnhofer
Fixes issue with Ctrl-D having to be pressed twice when reading from terminal.
2014-12-01Added src/scanners.c to repository.John MacFarlane
This reduces build dependencies and should help avoid issues like
2014-12-01Use `--no-generation-date` with `re2c`.John MacFarlane
2014-12-01Changed build procedure so that an empty scanners.c is not createdJohn MacFarlane
if `re2c` is missing. Closes #231.
2014-11-30More man page improvements.John MacFarlane
2014-11-30Make the man pages standard groff man rather than mdoc.John MacFarlane
2014-11-30Fixed bug in splitting arguments in make_man_page.py.John MacFarlane
2014-11-30Create man 3 page without markdown intermediary.John MacFarlane
Use proper man style, marking function types, arguments, etc. See #224.
2014-11-30Added blank line in comment.John MacFarlane
2014-11-30cmark.h: Use C89 comments.John MacFarlane
2014-11-30Renamed cmark_parser_push -> cmark_parser_feed.John MacFarlane
2014-11-30Rename member first_inline to inl_text in struct delimiterNick Wellnhofer
2014-11-30Eliminate delim_count in struct delimiterNick Wellnhofer
Use literal length instead.
2014-11-30Simplify remove_delimiterNick Wellnhofer
2014-11-30Simplify push_delimiterNick Wellnhofer
Always modify the subject when pushing a delimiter.
2014-11-30Rename delimiter_stack to delimiterNick 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-29Annotated cmark.h with some markdown headers etc. for man page.John MacFarlane
2014-11-29Merge pull request #227 from nwellnhof/process_emphJohn MacFarlane
Optimize and clarify process_emph
2014-11-29Check for `[` character in `link_label`.John MacFarlane
Closes #226.
2014-11-29Clarify code in insert_emphNick Wellnhofer
2014-11-29Add local variable for closer inlineNick Wellnhofer
2014-11-29Optimize emph insertionNick Wellnhofer
Avoid unnecessary malloc/free if opener is removed.
2014-11-29Remove redundant codeNick Wellnhofer
next/prev pointers are handled by cmark_node_free.
2014-11-29Split process_emphasis into two functionsNick Wellnhofer
Makes the code more readable.
2014-11-29Fix prev pointer of emph->first_childNick Wellnhofer
2014-11-29Push parser interfaceNick Wellnhofer
Replace cmark_parser_process_line with cmark_parser_push that takes arbitrary chunks of data. Also fixes #211.
2014-11-28Framework 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-28Removed cmark_free_nodes from public API.John MacFarlane
Replace it with static S_free_nodes.
2014-11-28Renamed 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-28Clarified logic in remove_delimiter.John MacFarlane
Motivated by warnings from clang static analyzer.
2014-11-28Avoid 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-28Removed unnecessary assignment.John MacFarlane
Clang static analyzer pointed out that the value assigned to 'pos' is never read.
2014-11-28Remove outdated public short name macrosNick Wellnhofer
2014-11-28Always define short name macros for private symbolsNick Wellnhofer
Since chunk.h and buffer.h are private now, there's no need to optionally disable the short name macros.