Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-02-15 | Moved handling of --smart from renderer to parser. | John MacFarlane | |
This allows backslash escapes to disable smart quote transformations in particular cases. Closes #8. | |||
2015-02-15 | Added options parameter to cmark_parse_document, cmark_parse_file. | John MacFarlane | |
Also to some non-exported functions in blocks and inlines. | |||
2015-02-15 | Moved normalization step from XML renderer to main. | John MacFarlane | |
2015-02-15 | Fixed segfault with --normalize (closes #7). | John MacFarlane | |
This bug was introduced after the modification in 009c3847f004fda437dd5376a9452973b1cb913e. | |||
2015-02-15 | Implemented --smart for man output. | John MacFarlane | |
2015-02-15 | Further improvements and small optimizations in smart punctuation code. | John MacFarlane | |
2015-02-15 | Optimized --smart. | John MacFarlane | |
Previously we had 0.24s on the benchmark without `--smart`, 0.38s with it. Now we have 0.27s with `--smart`, so `--smart` has only a small performance impact. | |||
2015-02-14 | Added smart.c, smart.h with function abstracting smart punct rendering. | John MacFarlane | |
Also fixed some bugs in earlier smart handling. Now handles UTF-8. | |||
2015-02-14 | astyle changes (code formatting only). | John MacFarlane | |
2015-02-14 | Improved smart quote recognition. | John MacFarlane | |
All tests now pass. | |||
2015-02-14 | Added CMARK_OPT_SMARTPUNCT and --smart option. | John MacFarlane | |
So far this is only implemented for the HTML renderer. Ultimately some of this should be factored out into a form that can be used in other renderers. | |||
2015-02-13 | Updated scanners for new whitespace definition. | John MacFarlane | |
2015-02-02 | Don't rely on strnlen being available | Nick Wellnhofer | |
2015-01-31 | Fixed autolink scanner to conform to the spec. | John MacFarlane | |
Backslash escapes not allowed in autolinks. | |||
2015-01-28 | Added Profile build type, 'make prof' target. | John MacFarlane | |
2015-01-23 | Add version information to shared library | Nick Wellnhofer | |
2015-01-23 | Let cmake update version | Nick Wellnhofer | |
Add a new template cmark_version.h.in to generate cmark_version.h containing version information. | |||
2015-01-23 | Improve version information | Nick Wellnhofer | |
Add version number and string as macros and symbols. Version numbers can be easily compared, for example in the C preprocessor: #include <cmark.h> #if CMARK_VERSION < 0x020200 #error Requires libcmark 2.2.0 or higher #endif Storing the version in a global variable allows to check the library version at runtime. For example: if (CMARK_VERSION != cmark_version) { warn("Compiled against libcmark %s, but using %s", CMARK_VERSION_STRING, cmark_version_string); } The version should be updated whenever the public API is changed. | |||
2015-01-21 | Avoid free(0) for link titles and URLs. | John MacFarlane | |
2015-01-21 | Removed unnecessary strbuf_free's. | John MacFarlane | |
2015-01-21 | Avoid trying to free string_contents for inlines. | John MacFarlane | |
This avoids an unnecessary free(0) -- and perhaps free(???). However, ltrace reveals that there is still a free(0) happening, with some other source. | |||
2015-01-20 | Accessor for iterator's root node | Nick Wellnhofer | |
2015-01-20 | Add user data field for nodes | Nick Wellnhofer | |
2015-01-19 | Man writer: ensure we properly escape multiline strings. | John MacFarlane | |
2015-01-18 | Readjust parser->current after closing fenced block. | John MacFarlane | |
Added assertion to raise an error if finalize is called on a closed block (as was happening undetected because of the fallback behavior). | |||
2015-01-18 | Changed rule for `_` emphasis and strong emphasis. | John MacFarlane | |
To prevent intra-word emphasis, we used to check to see if the delimiter was followed/preceded by an ASCII alphanumeric. We now do something more elegant: whereas an opening `*` must be left-flanking, an opening `_` must be left-flanking *and not right-flanking*. And so on for the other cases. All the original tests passed except some tests with Russian text with internal `_`, which formerly created emphasis but no longer do with the new rule. These tests have been adjusted. A few new test cases have been added to illustrate the rule. The C and JS implementations have both been updated. | |||
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 | |