kc3-lang/md4c/src

Branch :


Log

Author Commit Date CI Message
2b6ebdfa 2021-01-09 11:54:27 Fix use of the cmake package (#146) Fix use of the cmake package Fix use of the cmake package and its imported targets. Make sure that the include dir comes with the cmake targets Put everything under md4cConfig so that the md4c-html can see md4c. Use md4c namespace so that the targets become md4c::md4c and md4c::md4c-html following cmake standards for imported targets. Fixes #145.
9ba57ccb 2020-12-14 19:53:58 md_link_label_cmp_load_fold_info: Remove a bogus code. The input into the function is already guaranted to not have a new line characters. (And handling of them in the function was broken anyway.)
5a44e327 2020-12-14 18:59:56 md_link_label_cmp: Fix the loop end condition. The old version likely could stop prematurely in a corner case when there was a Unicode character at the end of the either string, which maps into multiple fold info codepoints. Fixes #142.
d4a78622 2020-12-14 18:49:35 Minor cleanup.
701a0626 2020-12-14 18:45:54 Make MD_UNICODE_FOLD_INFO::n_codepoints unsigned.
a45f839b 2020-12-14 12:21:50 Fix mixed signed/unsigned comparisons Force both operands to unsigned. n_codepoints does not seem to ever contain negative offsets anyhow, should it actually be unsigned?
6dd64346 2020-12-14 01:40:40 Silence "unused parameter" warnings Merely added a suitable macro. Didn't refactor any code to actually figure out why the parameters were not used.
569defae 2020-12-14 01:25:26 Silence -Wimplicit-fallthrough warnings Use a macro that dispatches to the compiler-specific magic to silence implicit fallthrough warnings when the fallthrough was actually intended. The code already featured comments, so these are actually safe to place. (Unfortunately, Clang does not recognize any comment as "fall through" comment, and GCC only recognizes some variations of "fall through", not "pass through". Moreover, one of the comments replaced here had a typo...)
e1b41876 2020-12-14 01:24:56 Enable more warnings when building under GCC/Clang
26003b88 2020-12-04 20:42:22 md_is_container_mark: Recognize list item marks just before EOF. We were recognizing the list item marks when a new line or a blank character follows. However, given end-of-file means implicitly also an end-of-line, we should recognize in that situation too. Fixes #139.
3254b7cb 2020-11-13 12:02:39 md_process_table_block_contents: Suppress empty TBODY block generation. When the table has no body rows, do not call the callback with MD_BLOCK_TBODY events. Fixes #138.
a997cb21 2020-10-18 09:34:10 Add MD_BLOCK_TABLE_DETAIL. This allows renderers to have the info about table dimension (table column and row count) in advance and e.g. simplify their memory allocation strategy.
4585088a 2020-11-13 10:16:34 md_analyze_permissive_url_autolink: Better GFM compatibility. The autolinks now allow unmatched parenthesis, only the trailing parenthesis closers are handled specially to deal with the situation the autolink is all inside an outer parenthesis. Somehow our tests were broken and avoided the cases with unmatched parenthesis pairs inside the auto-link. That's now fixed and in sync with GFM specs too. Fixes #135.
c3a18d55 2020-11-13 09:27:10 md_collect_marks: continue -> break Does not cause any change in behavior: we just avoid needless loop iterations now.
baa1dd06 2020-11-09 16:02:06 Fix some English wording in comments.
125e8e03 2020-10-18 10:18:11 Initializes an uninitilized variable in md_analyze_emph Fixes the following, reported by clang analysis: src/md4c.c:3729:61: warning: variable 'opener_index' may be uninitialized when used here [-Wconditional-uninitialized] MD_MARKCHAIN* opener_chain = md_mark_chain(ctx, opener_index); ^~~~~~~~~~~~ src/md4c.c:3686:25: note: initialize the variable 'opener_index' to silence this warning int opener_index; ^ = 0
1a2f4816 2020-10-18 10:56:49 Adds missing field initializers (undefined behavior) src/md4c.c:5667:72: warning: missing field 'beg' initializer [-Wmissing-field-initializers] static const MD_LINE_ANALYSIS md_dummy_blank_line = { MD_LINE_BLANK, 0 };
002f76c9 2020-10-18 09:37:45 md_resolve_links: Skip [...] used as a reference link/image label. Fixes #131.
22ca89a3 2020-09-29 21:33:43 Fix ISANYOF encountering a zero byte in the input. When it happened, it could lead to unexpected results, including broken internal state of the parser. Fixes #130.
440ccd82 2020-08-19 10:03:31 Update md4c.h
9651f780 2020-08-16 11:28:21 Improve docs comments.
67214417 2020-08-05 10:53:33 Make mark_chain[] helper macro definitions safer.
70d0ef7c 2020-08-05 09:18:41 Avoid simple {0} to initialize a more complex object. Should fix #125.
c501c891 2020-07-30 10:13:05 Fix spelling of "than" in many occurances. I often spell it errorneously as "then". Doing this mistake way too often when typing fast.
c595c2ed 2020-07-30 08:38:19 md_process_verbatim_block_contents: Fix off by 1 error. This caused outputting wrong indentation inside a fenced code blocks for lines indented with mor ethan 16 spaces. Fixes #124.
4ad801b7 2020-07-26 23:12:57 Replace deprecated MD_RENDERER mentions in md4c.h.
da27ee0d 2020-07-12 12:49:08 fix a comment typo in md4c-html.h, md_render_html -> md_html
dec6e22b 2020-06-27 20:27:28 Fix entity rendering with MD_HTML_FLAG_VERBATIM_ENTITIES. Fixes #118.
3e5d64bf 2020-05-29 10:42:38 Add missing <img /> tag to XHTML support (#116)
72dad97e 2020-05-20 16:44:07 scripts/build_folding_map.py: Handle properly "ranges" of length 2. Update the data structures in md_get_unicode_fold_info() to reflect the update in the script and handle the previously omitted characters. Fixes #113.
3d64d6be 2020-05-08 02:13:55 Update to Unicode 13.0 (#111)
ddcc1f34 2020-05-04 12:54:15 HTML renderer: Add support for XHTML mode.
2728b9eb 2020-04-20 19:37:18 Move md2html utility to a standalone dir.
ce8c6606 2020-04-20 19:32:13 Fix the build.
1f78c867 2019-08-09 10:29:55 Rename HTML renderer public identifier names. This is to reflect we make it a public API.
77c2669b 2019-08-09 10:15:05 Update generating pkgconfig .pc files. * Output also package URL. * Output also package description. * Output also package version. * Generate .pc file for the new renderer lib.
ed0ef280 2019-08-09 09:57:42 Build the HTML renderer as a standalong library.
7f2d880f 2019-08-09 09:50:24 Refactor dir structure. We place all the sources in the single directory in order to not having many dirs with too few sources.