cmark
cmark copied to clipboard
CommonMark parsing and rendering library and program in C
Discussions: - https://github.com/github/markup/issues/1076 - https://talk.commonmark.org/t/emphasis-and-east-asian-text/2491 There are three commits: - Change on code, - Proposed change on spec, - Additional test cases (maybe insufficient). I realised that the change will...
Following the spec change in https://github.com/commonmark/commonmark-spec/pull/710, this updates the implementation in the scanner to match.
The text: `- \na` Creates the following hierarchy: + `Document` + `List` + `Paragraph` + `Text` This AST has the following `{start_line, end_line, start_column, end_column}` + `Document: {1, 2, 1,...
API documentation is missing an explanation of CMARK_NODE_CUSTOM_BLOCK and CMARK_NODE_CUSTOM_INLINE
The API documentation for cmark (e.g. in the [cmark.3][cmark-man3] man page) does not explain the purpose or proper use of the `CMARK_NODE_CUSTOM_BLOCK` and `CMARK_NODE_HTML_INLINE` constants from the `cmark_node_type` enum. (Actually,...
Reference discussion: https://github.com/jgm/cmark/issues/100 I just rebased the branch on master and tested it, make passes with no new warnings all along the branch, valgrinding a table test shows no leaks....
Can we start a branch or anything to have another version that supports math inline and display style rendering just like LaTeX syntax? So this line $f(x) = 1$ or...
Clang-Tidy: Narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined ``` const unsigned char *eol; S_is_line_end_char(*eol) ``` where `S_is_line_end_char` is defined as: ``` static CMARK_INLINE bool S_is_line_end_char(char c)...
Try to build with the following C flags and improve your code: ``` -Wall -Wextra -Wconversion -Wcast-align -Wstrict-prototypes -Wuninitialized -Wshadow -Wformat=2 -Werror=incompatible-pointer-types ``` You will get some nice warnings, function...