CommonMark parsing and rendering library and program in C
cmark is the C reference implementation of CommonMark, a rationalized version of Markdown syntax with a spec. (For the JavaScript reference implementation, see commonmark.js.)
It provides a shared library (libcmark) with functions for parsing CommonMark documents to an abstract syntax tree (AST), manipulating the AST, and rendering the document to HTML, groff man, LaTeX, CommonMark, or an XML representation of the AST. It also provides a command-line program (cmark) for parsing and rendering CommonMark documents.
- Developed at devel:libraries:c_c++
- Sources inherited from project openSUSE:Factory
-
3
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:zSystems/cmark && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
cmark-0.28.0.tar.gz | 0000228973 224 KB | |
cmark.changes | 0000009614 9.39 KB | |
cmark.spec | 0000003020 2.95 KB |
Revision 6 (latest revision is 15)
Dominique Leuenberger (dimstar_suse)
accepted
request 528142
from
Ondřej Súkup (mimi_vx)
(revision 6)
- update to 0.28.0 * Update spec. * Use unsigned integer when shifting * Avoid memcpy'ing NULL pointers * DeMorgan simplification of some tests in emphasis parser. * Fixed undefined shift in commonmark writer * latex writer: fix memory overflow * Check for NULL pointer in get_link_type * Move fuzzing dictionary into single file * Reset bytes after UTF8 proc * Don't scan past an EOL * Document cases where `get_` functions return `NULL` * Properly handle backslashes in link destinations * Fixed `cmark_node_get_list_start` to return 0 for bullet lists, as documented * Use `CMARK_NO_DELIM` for bullet lists * Fixed code for freeing delimiter stack * Removed abort outside of conditional (typo). * Removed coercion in error message when aborting from buffer. * Print message to stderr when we abort due to memory demands * `libcmark.pc`: use `CMAKE_INSTALL_LIBDIR` * Fixed buffer overflow error in `S_parser_feed` * Update emphasis parsing for spec change. * Fixes for the LaTeX renderer + Don't double-output the link in latex-rendering. + Prevent ligatures in dashes sensibly when rendering latex. `\-` is a hyphenation, so it doesn't get displayed at all. * Added a test for NULL when freeing `subj->last_delim`. * Cleaned up setting of lower bounds for openers. * Fix #178, quadratic parsing bug. Add pathological test. (forwarded request 528141 from mimi_vx)
Comments 0