Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-02-16 | Rename CMARK_OPT_SMARTPUNCT -> CMARK_OPT_SMART. | John MacFarlane | |
2015-02-16 | Made 'options' an int rather than a long. | John MacFarlane | |
For consistency with the API. | |||
2015-02-16 | Move normalization step from main to cmark_parser_finish. | John MacFarlane | |
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-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-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-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 | |
2014-12-31 | Write to stdout in binary mode on Windows | Nick Wellnhofer | |
This fixes the output of newlines. | |||
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 | 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 | 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-13 | Added cmark_render_man (man page writer). | John MacFarlane | |
cmark: Replaced `--man` and `--ast` with generic `--to` option. | |||
2014-12-02 | Fix EOF detection | Nick Wellnhofer | |
Fixes issue with Ctrl-D having to be pressed twice when reading from terminal. | |||
2014-11-30 | Renamed cmark_parser_push -> cmark_parser_feed. | John MacFarlane | |
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 | 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-25 | Replaced cmark_debug_print with cmark_render_ast. | John MacFarlane | |
This returns a string. | |||
2014-11-22 | Make parser accept a char* | Nick Wellnhofer | |
2014-11-22 | Make render_html return a char* | Nick Wellnhofer | |
2014-11-17 | Switch cmark_node_inl over to cmark_node | Nick Wellnhofer | |
2014-11-17 | Switch cmark_node_block over to cmark_node | Nick Wellnhofer | |
2014-11-16 | Free the string returned by html renderer in main program. | John MacFarlane | |
2014-11-16 | Moved MAX_LINK_LABEL_LENGTH out of public header. | John MacFarlane | |
Put it in ast.h. | |||
2014-11-16 | Probe for stdbool.h | Nick Wellnhofer | |
Let cmake create a cmark_config.h file to deal with platforms missing stdbool.h. | |||
2014-11-16 | Don't use variable-length arrays | Nick Wellnhofer | |
They're not supported by MSVC. | |||
2014-11-16 | We don't need to include stdbool in the public header. | John MacFarlane | |
2014-11-16 | cmark_render_html now just returns a regular C string. | John MacFarlane | |
This way, we don't have to expose buffer.h; it is just used internally. | |||
2014-11-15 | Expose lower-level parsing API. | John MacFarlane | |
The new functions cmark_new_doc_parser, cmark_free_doc_parser, cmark_process_line, and cmark_finish allow you to feed lines one by one (possibly from several files) to the parser and call finish when you're done. This is now used in main for mulitple files. | |||
2014-11-14 | Added some includes of buffer.h | John MacFarlane | |
2014-11-13 | Moved the timing macros to get finer-grained information. | John MacFarlane | |
2014-11-13 | Added bench.h and inserted timing macros in main. | John MacFarlane | |
`make TIMER=1` to build with timings. | |||
2014-11-13 | Rename cmark_free_nodes -> cmark_free_blocks. | John MacFarlane | |
2014-11-11 | Don't include debug.h in any production code. | John MacFarlane | |
It uses some GNU-specific things. | |||
2014-10-24 | Renamed c program and library stmd -> cmark. | John MacFarlane | |
Also renamed internal library functions accordingly. | |||
2014-10-18 | Reindented c sources. | John MacFarlane | |
2014-09-15 | Cleanup external APIs | Vicent Marti | |
2014-09-09 | Rename node_block | Vicent Marti | |
2014-09-09 | Rename to strbuf | Vicent Marti | |
2014-09-09 | ffffix | Vicent Marti | |
2014-09-09 | lol | Vicent Marti | |
2014-09-06 | replace Standard Markdown with CommonMark | Pablo RodrÃguez | |
2014-08-13 | main.c: Fixed reading of files specified on command line. | John MacFarlane | |
2014-08-13 | Initial commit | John MacFarlane | |