Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-17 | Removed some unneeded tests (code clarity). | John MacFarlane | |
2015-01-17 | Small code clarification. | John MacFarlane | |
2015-01-17 | Put check for fence close with the other checks for end-of-block. | John MacFarlane | |
This is a more logical arrangement and follows recent changes to the JS implementation. | |||
2015-01-16 | Fixed #285 in cmark. | John MacFarlane | |
2015-01-16 | Nonrecursive rewrite of ends_with_blank_line. | John MacFarlane | |
Closes #286. | |||
2015-01-16 | Renamed parameters cmark_node -> node. | John MacFarlane | |
Minor code reformatting: This corrects an overzealous global replace from earlier. | |||
2015-01-12 | Some astyle reformatting. | John MacFarlane | |
2015-01-11 | xml.c: Include level attribute in header. | John MacFarlane | |
2015-01-11 | xml format: use 'destination' instead of 'url', like the spec. | John MacFarlane | |
2015-01-12 | Reduce size of gperf entity table | Nick Wellnhofer | |
Don't store length of UTF-8 string. It can be computed by NULL-terminating strings shorter than 4 bytes and using strnlen. Use gperf's string pool option. This allows to use an 'int' index into the string pool instead of a pointer and is helpful on 64-bit systems. Shaves about 75 KB off the 32-bit binaries on Linux and 128 KB off the 64-bit binaries on OS X. | |||
2015-01-10 | Update iterator documentation | Nick Wellnhofer | |
2015-01-10 | Rework iterators | Nick Wellnhofer | |
* Advance to the next node when calling 'cmark_iter_next', not when calling 'cmark_iter_get_node'. * Add 'cmark_iter_get_event_type' accessor. * Allow deletion of nodes after an 'EXIT' event, or an 'ENTER' event for leaf nodes. | |||
2015-01-10 | Optimize S_is_leaf | Nick Wellnhofer | |
2015-01-09 | Minor code reformatting. | John MacFarlane | |
2015-01-09 | xml writer: add list attributes. | John MacFarlane | |
2015-01-08 | Added `cmark_iter_reset` and a note about handling destructive updates. | John MacFarlane | |
2015-01-07 | cmark: Add function & option to normalize text nodes. | John MacFarlane | |
So, instead of <text>Hi</text> <text>&</text> <text>lo</text> we get <text>Hi&lo</text> * Added exported `cmark_consolidate_text_nodes` function. * Added `CMARK_OPT_NORMALIZE` to options. * Added optional normalization in XML writer. * Added `--normalize` option to command-line program. * Updated man page. | |||
2015-01-05 | Reformatted code consistently with astyle. | John MacFarlane | |
2015-01-04 | xml writer - fixed issues with empty images. | John MacFarlane | |
2015-01-03 | scanners.re: More accurate regex for HTML comments. | John MacFarlane | |
Note: this only affects inline parsing. Block parsing is handled differently. | |||
2014-12-31 | Recreate scanners.c only on demand | Nick Wellnhofer | |
2014-12-31 | Write to stdout in binary mode on Windows | Nick Wellnhofer | |
This fixes the output of newlines. | |||
2014-12-31 | Remove useless void* cast | Nick Wellnhofer | |
2014-12-31 | Include guards and C linkage for cmark_ctype.h | Nick Wellnhofer | |
2014-12-31 | Feature test for va_copy | Nick Wellnhofer | |
MSVC doesn't support va_copy. | |||
2014-12-31 | Add missing va_end | Nick Wellnhofer | |
2014-12-30 | Revert "Remove unneeded va_copy" | John MacFarlane | |
This reverts commit 485ef21b95e257e9d9cbcaa804c3c164f1f49a80. Apparently the va_copy IS needed, because without this code we get segfaults in some cases. Closes #253. @nwellnhof, can you have a look at this issue and comment? I understand that this code was removed for portability reasons. Is there an alternative solution? | |||
2014-12-30 | Revert "man: use a variable to store the char * from node_get_url." | John MacFarlane | |
This reverts commit 46b67b710788be7924b5a412ab68eea3cac0cd96. I was mistaken that this helped. Which is good, because I would not have understood why it helped. | |||
2014-12-30 | man: use a variable to store the char * from node_get_url. | John MacFarlane | |
We get segfaults on some platforms when we do cmark_strbuf_printf(man, " (%s)", cmark_node_get_url(node)); but they go away with: url = cmark_node_get_url(node); cmark_strbuf_printf(man, " (%s)", url); I don't understand why. Closes #253. | |||
2014-12-29 | Attempted optimization of cmark_ctype. | John MacFarlane | |
Use a single lookup table for all character types. I'm not sure this actually helps so much. | |||
2014-12-29 | Renamed a couple variables. | John MacFarlane | |
2014-12-29 | Added cmark_ prefix to functions in cmark_ctype. | John MacFarlane | |
2014-12-29 | Added cmark_ctype.h with locale-independent isspace, ispunct, etc. | John MacFarlane | |
Otherwise cmark's behavior varies unpredictably with the locale. `is_punctuation` in utf8.h has also been adjusted so that everything that counts all ASCII symbol characters count as punctuation, even though some are not in P* character classes. | |||
2014-12-29 | Avoid warning about unused options parameter in man writer. | John MacFarlane | |
2014-12-29 | Make `--sourcepos` affect xml writer too. | John MacFarlane | |
2014-12-29 | Added options parameter to renderers. | John MacFarlane | |
To keep the API simple and avoid API changes when new options are added, this is just a long integer. Set it by disjoining options that are defined as powers of 2: e.g. `CMARK_HTML_SOURCEPOS | CMARK_HTML_HARDREAKS`. Test options using `&`: `if (options & CMARK_HTML_SOURCEPOS)`. Added `--hardbreaks` and `--sourcepos` command-line options. | |||
2014-12-28 | Added cmark_node_set_list_delim, cmark_node_get_list_delim. | John MacFarlane | |
Even though this doesn't make a difference in default HTML output, it's worth keeping track; some output formats may allow you to distinguish lists with `1)` and with `1.` delimiters. | |||
2014-12-28 | Added CMARK_NO_DELIM to cmark_delim_type | John MacFarlane | |
2014-12-28 | Removed old 'ast' format, now that we have 'xml'. | John MacFarlane | |
The xml representation of the AST is not quite as pretty, but it contains the same information and is not in an ad hoc format. See #53. | |||
2014-12-28 | Improved end column/end line calculations in finalize. | John MacFarlane | |
2014-12-28 | Added end_column to cmark_node struct. | John MacFarlane | |
API exports cmark_node_get_column. XML writer indicates start and end line and column for block-level nodes. | |||
2014-12-28 | blocks.c - removed unneeded start_line parameter from make_block. | John MacFarlane | |
2014-12-28 | blocks.c: removed redundant line_number param in finalize. | John MacFarlane | |
Also break_out_of_lists. | |||
2014-12-28 | Rename CMARK_NODE_LIST_ITEM -> CMARK_NODE_ITEM. | John MacFarlane | |
2014-12-28 | Revamped xml writer and dtd to use lowercase element names. | John MacFarlane | |
2014-12-28 | Rename cmark_node_type_string -> cmark_node_get_type_string. | John MacFarlane | |
And export in cmark.h public header. Also, use lowercase names, not uppercase. | |||
2014-12-28 | Added xml writer, to dump the AST in XML. | John MacFarlane | |
This is a work-in-progress. CommonMark.dtd gives the DTD for the generated XML. Closes #53. | |||
2014-12-28 | Expose cmark_node_type_string in node.h (private header). | John MacFarlane | |
Previously was static function S_type_string. | |||
2014-12-26 | Optimized the change in 72a556fd3bd17feaffba2fb6faa8c8f2a3931643. | John MacFarlane | |
Thanks @Knagis. | |||
2014-12-25 | Updated C parser to handle #252. | John MacFarlane | |
Closes #252. |