Log

Author Commit Date CI Message
Martin Mitas 4d2f8a2e 2024-01-08T19:35:53 Add test for issue #201. Seems the issue got fixed by combination of previous commits. Fixes #201.
Martin Mitas 132c29dc 2024-01-08T19:31:37 Allow indented code block to follow any block except paragraph without a blank line. Fixes #200.
Martin Mitas 601c8ab7 2024-01-08T19:06:04 Restore parent's block indentation when interruping a list item with double blank line. Fixes #190.
Martin Mitas bf2e7d30 2024-01-08T18:19:26 Require CMake 3.5 or newer. The recent versions of CMake started to warn about compatibility with older CMake versions than 3.5.
Martin Mitas 28f253d7 2024-01-08T18:18:51 Fix some gcc warnings with -pedantic. Fixes #187.
Martin Mitas 8c5e1906 2023-12-12T19:56:56 Fix windows-32 build.
Martin Mitas a9b0b457 2023-12-12T19:44:04 Migrate CI from Travis and Appveyor to Github Workflows.
Martin Mitas a27f8dc0 2023-12-12T19:31:30 test/fuzzers.fuzz-mdhtml.c: Remove stale comment.
Martin Mitas e9ff661f 2022-01-14T17:34:01 CHANGELOG.md: Link OSS-Fuzz.
Martin Mitas 7d439d49 2022-01-14T17:32:27 CHANGELOG.md: Fix a typo.
Martin Mitas d3c1c0bb 2022-01-14T17:27:05 fuzz-mdhtml.c: Cleanup of the code.
Martin Mitas f7c8db75 2022-01-14T11:04:02 md_rollback: Fix dummization of virtual closers. Fixes #173.
Martin Mitas 6abb7789 2022-01-14T10:13:28 Remove debug messages left by mistake in the previous commit.
Martin Mitas 62b60979 2022-01-14T10:00:09 Reset TABLECELLBOUNDARIES with ordinary opener chains. This is needed because special handling of '|' is now done also if the wiki-links extension is enabled so the chain is populated even with that extension. Fixes #174.
Martin Mitas a470fbf8 2022-01-13T20:34:47 md2html: Change interpretation of --github and --commonmark options. Previously these assigned a set of parser flags with an operator '='. Now '|=' is used so that any preceding options affecting what extensions to allow are not ignored.
Martin Mitas db9ab417 2022-01-12T16:16:00 Improve wiki-link parsing. * md_rollback: Restore dummy marks changed to virtual zero-length closers. * md_analyze_links: Be more careful in how we rollback contents of a full wiki link (`[[destination|label]]`). The destination has to be rollbacked completely (MD_ROLBACK_ALL) while the label only with MD_ROLLBACK_CROSSING. Fixes #173.
Martin Mitas 8dd35762 2022-01-11T20:53:04 md_analyze_dollar: Simplify the function.
Martin Mitas 4358c40a 2022-01-11T10:28:06 md_lookup_line: Advance to the next line even if the offset... falls into a gap between two lines, instead of returning NULL. Fixes NULL dereference in md_is_link_reference(). This was a regression in 2e9b13cc512b5984b010a7934253702a6763f4f7.
Martin Mitas c058e82c 2022-01-10T12:34:57 md_is_table_underline: Fix detection by the end of file. This was a regression in a8bb4d3020eb1cfa07f01241c2aa668d91011cb5.
Martin Mitas b42e7f5c 2022-01-10T11:41:25 md_resolve_links: Avoid link ref. def. lookup if... if we know that the bracket pair contains nested brackets. That makes the label invalid anyway, therefore we know that there is no link ref. def. to be found anyway. In case of heavily nested bracket pairs, the lookup could lead to quadratic parsing times. Fixes #172.
Martin Mitas 7f44e1ad 2022-01-10T10:39:29 pathological_tests.py: Improve code alignment.
Martin Mitas 2e9b13cc 2022-01-10T03:10:43 md_lookup_line: New function. The function performs a binary search over array of MD_LINE structs to find a line the given offset lives on. Replaced few linear scans for such lines with a call to this function.
Martin Mitas f662b26e 2022-01-06T16:27:06 Merge branch 'master' of https://github.com/mity/md4c
Tim Gates cf5fe0c8 2022-01-07T02:27:00 Fix a typo in a docs comment (#170) Should read `propagated` rather than `propgated`.
Martin Mitas b3593e7d 2022-01-06T16:25:20 CHANGELOG.md: Update.
Thierry Coppey f436c302 2022-01-06T16:21:51 Fix buffer overflows and other errors found with fuzzying. (#168) Fix multiple buffer overflow on input found with fuzzying.
Martin Mitáš eeb32ecc 2022-01-06T16:16:45 Merge pull request #167 from dtldarek/master Two buffer overflow fixes.
Martin Mitas b8c31a5b 2022-01-06T16:15:12 CHANGELOG.md: Add a note for the PR #167.
Martin Mitas a8bb4d30 2022-01-06T16:01:55 md_is_table_underline: Remove requirement for minimal length of a cell underline. Fixes #169.
dtldarek 260cd339 2021-08-25T15:02:38 Fix buffer overflow on input found with fuzzying (in c-string format): "\n# h1\nc hh##e2ked\n\n A | rong__ ___strong \u0000\u0000\u0000\u0000\u0000\u0000\a\u0000\u0000\u0000\u0000\n# h1\nh# #2\n### h3\n#### h4\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\\\n##### h5\n#*#####\u0000\n6"
dtldarek 933388a6 2021-08-25T14:41:49 This is a fix for a buffer overflow that happens on input found with fuzzying (in c-string format): "\xA9##r[](r[](".
Martin Mitas ab422e83 2021-07-15T19:12:49 md4c-html.h: Fix typo in a comment.
Martin Mitas 7f053306 2021-07-15T19:06:06 CHANGELOG.md: Update.
Martin Mitas ea188729 2021-07-15T18:58:39 Emit '\n' after the XHTML root tag. Fixes #163.
Martin Mitas ccc8b64a 2021-07-15T18:56:46 md_html: Add `~` to the list of characters not escaped in URIs. Fixes #165.
Martin Mitas d5f8cc29 2021-06-27T18:48:05 Update README.md and CHANGELOG.md.
Martin Mitas 82b226ff 2021-06-27T18:42:09 md_is_html_block_start_condition: Accept lower-case HTML declaration. The change is mandated by the spec v. 0.30.
Martin Mitas d50a0142 2021-06-27T18:31:02 md_is_html_block_start_condition: Update for 0.30. The spec. 0.30 adds the tag <textarea> into the list if HTML blocks start condition type 1.
Martin Mitas c01aa6b3 2021-06-27T18:28:26 Update CommonMark spec file to v. 0.30
Kai Koehne e8285942 2021-06-14T09:47:17 Fix MSVC compiler level 3 warnings (#162) Fix various C4244 warnings with the MSVC compiler for 64 bit
Martin Mitas c3340b48 2021-05-11T12:33:15 Bump version to 0.4.8.
Martin Mitas da77b928 2021-04-15T19:14:43 CHANGELOG.md: Fix typo.
Martin Mitas 0cebd6ff 2021-04-14T18:31:18 CHANGELOG.md: Update.
Martin Mitas b2ee4b19 2021-04-14T18:27:19 md_resolve_links: Fix the test for the nested autolink covering whole link text. This fixes the fix for #152.
Martin Mitas bcb55d0d 2021-04-14T09:18:09 md_resolve_links: Suppress bogus nested permissive autolink. Fixes #152.
Martin Mitas 4fc808d8 2021-03-29T12:51:48 md_analyze_line: Avoid reading 1 byte beyond the input size. Fixes #155.
Martin Mitas aa654230 2021-03-22T14:00:35 md_enter_child_containers: Propagate list mark character properly. Fixes #153, #154.
DavidKorczynski 3478ec69 2021-02-23T14:01:31 Added fuzzer for oss-fuzz integration. (#151)
Martin Mitas 269bbdb3 2021-02-11T21:39:44 Fix output with --full-html command line options. Fixes #150.
Martin Mitas fe2f2427 2021-02-11T11:35:54 Fix copy&paster error in a comment.
Martin Mitas fd7b5fe0 2021-02-05T21:40:47 md_analyze_line: Fix implicit ending of HTML blocks... ... when the HTML block is not explicitly ended (before the enclosing container block ends). Fixes #149.
Niclas Rosenvik 2b6ebdfa 2021-01-09T11: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.
Martin Mitas aa63198b 2020-12-24T15:04:35 Bump version to 0.4.7.
Martin Mitas 9ba57ccb 2020-12-14T19: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.)
Martin Mitas da5821ae 2020-12-14T19:53:40 Fix testcase for issue #142.
Martin Mitas 5a44e327 2020-12-14T18: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.
Martin Mitas d4a78622 2020-12-14T18:49:35 Minor cleanup.
Martin Mitas 701a0626 2020-12-14T18:45:54 Make MD_UNICODE_FOLD_INFO::n_codepoints unsigned.
Giuseppe D'Angelo a45f839b 2020-12-14T12: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?
Giuseppe D'Angelo 6dd64346 2020-12-14T01: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.
Giuseppe D'Angelo 569defae 2020-12-14T01: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...)
Giuseppe D'Angelo e1b41876 2020-12-14T01:24:56 Enable more warnings when building under GCC/Clang
Martin Mitas 26003b88 2020-12-04T20: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.
Martin Mitas 3254b7cb 2020-11-13T12: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.
Martin Mitas a997cb21 2020-10-18T09: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.
Martin Mitas 4585088a 2020-11-13T10: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.
Martin Mitas c3a18d55 2020-11-13T09:27:10 md_collect_marks: continue -> break Does not cause any change in behavior: we just avoid needless loop iterations now.
Martin Mitas baa1dd06 2020-11-09T16:02:06 Fix some English wording in comments.
srinivas32 23621a61 2020-11-05T18:40:46 added power support arch ppc64le on YML file. Added power support for the travis.yml file with ppc64le. This is part of the Ubuntu distribution for ppc64le.
Rasmus Andersson 125e8e03 2020-10-18T10: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
Rasmus Andersson 1a2f4816 2020-10-18T10: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 };
Rasmus Andersson 1b2840cb 2020-10-18T09:41:37 adds /build dir to gitignore Documentation https://github.com/mity/md4c/wiki/Building-MD4C says to use build/ for cmake. I noticed that .gitignore contains a directory called build-aux -- perhaps the author were using that and either forgot to update the gitignore file or the documentation.
Martin Mitas 002f76c9 2020-10-18T09:37:45 md_resolve_links: Skip [...] used as a reference link/image label. Fixes #131.
Martin Mitas 601885f7 2020-09-30T11:44:48 Bump version to 0.4.6.
Martin Mitas 22ca89a3 2020-09-29T21: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.
Martin Mitas bcdbd126 2020-09-17T09:55:33 scripts/build_folding_map.py: Fix/improve a comment.
Karsten 440ccd82 2020-08-19T10:03:31 Update md4c.h
Martin Mitas 9651f780 2020-08-16T11:28:21 Improve docs comments.
Martin Mitas db7d1c92 2020-08-16T10:56:19 Bump version to 0.4.5.
Martin Mitas 67214417 2020-08-05T10:53:33 Make mark_chain[] helper macro definitions safer.
Martin Mitas 70d0ef7c 2020-08-05T09:18:41 Avoid simple {0} to initialize a more complex object. Should fix #125.
Martin Mitas 3980028a 2020-08-03T16:57:45 README.md: Some minor improvements.
Martin Mitas c501c891 2020-07-30T10: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.
Martin Mitas c595c2ed 2020-07-30T08: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.
Martin Mitas 470b42c7 2020-07-28T08:12:57 README.md: Fix a typo.
Martin Mitas 0c4d7f3d 2020-07-28T07:18:23 test/normalize.py: Use html.escape instead of cgi.escape. Fixes #123.
Nazar Vinnichuk 4ad801b7 2020-07-26T23:12:57 Replace deprecated MD_RENDERER mentions in md4c.h.
Martin Mitas 1b437db5 2020-07-23T10:23:25 README.md: Small rewording.
Martin Mitas 2aa694a3 2020-07-22T10:52:29 README.md: Small clarification.
Evan Klitzke da27ee0d 2020-07-12T12:49:08 fix a comment typo in md4c-html.h, md_render_html -> md_html
Chris White 5b1d5db0 2020-06-28T09:09:38 Add .gitignore
Martin Mitas 2ef9bc4f 2020-06-28T16:20:17 README.md: Small update.
Martin Mitas dec6e22b 2020-06-27T20:27:28 Fix entity rendering with MD_HTML_FLAG_VERBATIM_ENTITIES. Fixes #118.
Martin Mitas 7021024d 2020-05-29T17:21:21 Bump version to 0.4.4.
Martin Mitas 4e7da1c1 2020-05-29T17:16:22 CHANGELOG.md: Improve some wording.
Martin Mitas 84fddf48 2020-05-29T17:12:01 README.md: Small assorted updates.
Dominick C. Pastore 3e5d64bf 2020-05-29T10:42:38 Add missing <img /> tag to XHTML support (#116)
Martin Mitas 4eaa83b2 2020-05-20T17:17:16 Update CHANGELOG.md.
Martin Mitas 72dad97e 2020-05-20T16: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.
Martin Mitas 25096c7c 2020-05-07T23:14:59 CHANGELOG.md: Update.