kc3-lang/md4c

Branch :


Log

Author Commit Date CI Message
20cb7445 2024-01-16 15:10:57 Merge branch 'test_opts'
6685df9c 2024-01-16 15:09:33 Move all regression tests into new tests/regressions.txt. (And update scripts/run-tests.sh accordingly.)
74e5f7a9 2024-01-16 14:56:09 Tests: Specify md2html command line options for each example as needed. Previously the caller (or the script scripts/run_tests.sh) needed to know what options to specify.
359406bf 2024-01-16 14:25:46 Test: Add support for per-example command line options. (We also removed direct call support into the library. It was inherited from cmark as the testsuite was originally taken from there, but it actually was never updated to work with MD4C.)
0ac9f35d 2024-01-16 09:53:41 md_analyze_marks: Skip analyzing marks if... they fall into range of previously analyzed mark. That can happen if the previous mark has been expanded. That typically happens for permissive auto-links. This fixes one case of pathologic input leading to quadratic behavior.
b6777d78 2024-01-16 01:30:59 Wiki-links extension: Search for '|' only outside resolved ranges.
afeece29 2024-01-15 23:03:21 Fix line indentation calculation when interrupting list... due the "list item cannot begin with two blank lines" rule.
481230f4 2024-01-15 08:34:21 Bump version to 0.5.0.
4b5dd10e 2024-01-13 15:04:31 README.md: Add imgui_md to Software using MD4C. (And sort the items alphabetically.)
716da8b0 2024-01-13 11:44:27 CHANGELOG.md: Fix typo.
cf1226dd 2024-01-13 03:14:13 Update CHANGELOG.md.
78829427 2024-01-13 02:59:35 Fix some emphasis parsing issues. * We incorrectly applied the infamous rule of three only to asterisk-encoded emphasis, it has to be applied to underscore as well. * We incorrectly applied the rule of three only if the opener and/or closer was inside a word. It has also to be applied if the mark is both preceded and followed by punctuation. Fixes #217.
5592352f 2024-01-13 00:30:08 HTML declaration doesn't require whitespace before the closer. Fixes #216.
7497ea92 2024-01-13 00:17:08 Allow tabs after setext header underline. Fixes #215.
2750d9fa 2024-01-13 00:02:12 Add tags <h2>...<h6> as triggers for HTML block type 6. Fixes #214.
0d10b60b 2024-01-12 22:44:31 Move test/fuzz-input/ to test/fuzzers/seed-corpus/.
4a64fee2 2024-01-11 13:12:55 Bump copyright years.
5204c30d 2024-01-11 12:41:40 md_is_html_block_end_condition: Fix return value.
f32a861e 2024-01-11 12:20:23 md_end_current_block: Fix EOL handling.
76abc636 2024-01-11 12:09:22 md_is_html_block_end_condition: Fix EOF handling.
4a7246de 2024-01-11 11:55:38 md_is_inline_link_spec: Fix EOL checking.
af96a3f4 2024-01-11 10:57:02 ci-fuzz.yml: Reenable "Upload Sarif" step. See https://github.com/google/oss-fuzz/issues/10915.
3e576b49 2024-01-11 10:49:05 Rename the fuzz test workflow.
407b107e 2024-01-11 10:42:27 ci-fuzz.yml: .yml cannot have multiple "if" in one step.
59330842 2024-01-11 10:39:52 ci-fuzz.yml: Disable step "Upload Sarif". (It got in from the oss-fuzz's example cifuzz.yml, but IDK even what it is so hopefully we can live without it.)
85b971a3 2024-01-11 10:01:00 Try to fix ci-fuzz.yml by fixing indentation.
722cacad 2024-01-11 09:56:07 Try to fix ci-fuzz.yml by removing permissions {}. cmark doesn't have that line either.
87d4f063 2024-01-11 09:50:58 Enable CI fuzzing via oss-fuzz project. Should perform some initial 10 min fuzz testing on pull requests.
e25ea3d1 2024-01-11 03:34:24 Update list of named entities.
35ca9b0b 2024-01-11 01:09:35 Wording improvements in README.md.
3209f970 2024-01-11 01:06:59 Update CHANGELOG.md.
c6535ff3 2024-01-10 21:39:24 Fix eof handling in a middle of task list item.
ebbb12e5 2024-01-10 20:29:02 Revert most of PR #168 i.e of the commit f436c3029850c138e54a0de055d61db45130409e. It added bunch of checks all over the place, but most of them shouldn't be needed: If they are true, our internal state is already broken. In other words, those checks are hiding real bugs and making debugging harder. Hopefully the underlying bugs are already fixed in some of previous commits addressing some fuzzing issues, like these: * d775b5103ee130edbd808e21d1da6ca75f76a558 * c6942ef03ed46a67bd9b3af8ce1eefd781622777
d775b510 2024-01-10 18:33:32 More fixes of TABLECELLBOUNDARIES chain handling. Fixes #213.
821477b1 2024-01-10 17:35:46 Fix typo in fuzz-mdhtml.c, preventing oss-fuzz from working.
c6942ef0 2024-01-10 17:31:55 Treat TABLECELLBOUNDARIES chain as special one. It's not an ordinary openers chain as (most of) the others, and md_rollback() must not touch it. Fixes #212.
338e0bb2 2024-01-10 17:30:51 md2html: Add undoc'ed debug option --replay-fuzz. This helps to reproduce issues found by oss-fuzz project.
ca169a92 2024-01-10 12:22:04 Fix HTML renderer to handle neted images correctly. Fixes #210.
47a2ad3d 2024-01-09 11:34:40 added options --html-title and --html-css (#188)
efcfd7e7 2024-01-09 02:32:17 Added MD_SPAN_A_DETAIL.is_autolink (#181) This allows the processor to tell whether an <A> tag is the result of an autolink, and customize its output. For example, I want to emit an autolink of an image URL as an <IMG> tag, and an autolink of a YouTube URL as a video embed.
ecce1715 2024-01-09 18:30:01 add build option for md2html executable (#184) Fixes build error for iOS, you can set BUILD_MD2HTML_EXECUTABLE as OFF Signed-off-by: Dylan <2894220@gmail.com> Co-authored-by: Martin Mitáš <mity@morous.org>
61949ee9 2024-01-09 02:08:48 Update to Unicode 15.1.
38303af3 2024-01-09 00:01:35 Make md_is_html_block_end_condition() reuse the same data... ... as md_is_html_block_start_condition() for the type 1 so we make all tags are used consistently there. Fixes #207.
8699cd5d 2024-01-08 21:58:26 test/hard-soft-breaks.txt: Fix wording.
319631f6 2024-01-08 21:52:30 Don't merge multiple HTML blocks together. Fixes #202.
6ef3be6e 2024-01-08 20:09:57 `MD_FLAG_HARD_SOFT_BREAKS` (#193)
4e5a6e6f 2024-01-08 21:57:40 Update README.md (#198) Added MarkDown Monolith Assembler to the list of software that uses md4c.
f554bf11 2024-01-08 20:55:54 Don't trim HTML block lines (MD_LINE_HTML) (#206) Markdown 0.30 doesn't mandate right-trimming the contents of HTML lines. Doing so is more work and breaks output compatibility with cmark, tested with https://github.com/commonmark/cmark/commit/9393560.
4d2f8a2e 2024-01-08 19:35:53 Add test for issue #201. Seems the issue got fixed by combination of previous commits. Fixes #201.
132c29dc 2024-01-08 19:31:37 Allow indented code block to follow any block except paragraph without a blank line. Fixes #200.
601c8ab7 2024-01-08 19:06:04 Restore parent's block indentation when interruping a list item with double blank line. Fixes #190.
bf2e7d30 2024-01-08 18: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.
28f253d7 2024-01-08 18:18:51 Fix some gcc warnings with -pedantic. Fixes #187.
8c5e1906 2023-12-12 19:56:56 Fix windows-32 build.
a9b0b457 2023-12-12 19:44:04 Migrate CI from Travis and Appveyor to Github Workflows.
a27f8dc0 2023-12-12 19:31:30 test/fuzzers.fuzz-mdhtml.c: Remove stale comment.
e9ff661f 2022-01-14 17:34:01 CHANGELOG.md: Link OSS-Fuzz.
7d439d49 2022-01-14 17:32:27 CHANGELOG.md: Fix a typo.
d3c1c0bb 2022-01-14 17:27:05 fuzz-mdhtml.c: Cleanup of the code.
f7c8db75 2022-01-14 11:04:02 md_rollback: Fix dummization of virtual closers. Fixes #173.
6abb7789 2022-01-14 10:13:28 Remove debug messages left by mistake in the previous commit.
62b60979 2022-01-14 10: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.
a470fbf8 2022-01-13 20: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.
db9ab417 2022-01-12 16: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.
8dd35762 2022-01-11 20:53:04 md_analyze_dollar: Simplify the function.
4358c40a 2022-01-11 10: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.
c058e82c 2022-01-10 12:34:57 md_is_table_underline: Fix detection by the end of file. This was a regression in a8bb4d3020eb1cfa07f01241c2aa668d91011cb5.
b42e7f5c 2022-01-10 11: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.
7f44e1ad 2022-01-10 10:39:29 pathological_tests.py: Improve code alignment.
2e9b13cc 2022-01-10 03: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.
f662b26e 2022-01-06 16:27:06 Merge branch 'master' of https://github.com/mity/md4c
cf5fe0c8 2022-01-07 02:27:00 Fix a typo in a docs comment (#170) Should read `propagated` rather than `propgated`.
b3593e7d 2022-01-06 16:25:20 CHANGELOG.md: Update.
f436c302 2022-01-06 16:21:51 Fix buffer overflows and other errors found with fuzzying. (#168) Fix multiple buffer overflow on input found with fuzzying.
eeb32ecc 2022-01-06 16:16:45 Merge pull request #167 from dtldarek/master Two buffer overflow fixes.
b8c31a5b 2022-01-06 16:15:12 CHANGELOG.md: Add a note for the PR #167.
a8bb4d30 2022-01-06 16:01:55 md_is_table_underline: Remove requirement for minimal length of a cell underline. Fixes #169.
260cd339 2021-08-25 15: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"
933388a6 2021-08-25 14:41:49 This is a fix for a buffer overflow that happens on input found with fuzzying (in c-string format): "\xA9##r[](r[](".
ab422e83 2021-07-15 19:12:49 md4c-html.h: Fix typo in a comment.
7f053306 2021-07-15 19:06:06 CHANGELOG.md: Update.
ea188729 2021-07-15 18:58:39 Emit '\n' after the XHTML root tag. Fixes #163.
ccc8b64a 2021-07-15 18:56:46 md_html: Add `~` to the list of characters not escaped in URIs. Fixes #165.
d5f8cc29 2021-06-27 18:48:05 Update README.md and CHANGELOG.md.
82b226ff 2021-06-27 18:42:09 md_is_html_block_start_condition: Accept lower-case HTML declaration. The change is mandated by the spec v. 0.30.
d50a0142 2021-06-27 18: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.
c01aa6b3 2021-06-27 18:28:26 Update CommonMark spec file to v. 0.30
e8285942 2021-06-14 09:47:17 Fix MSVC compiler level 3 warnings (#162) Fix various C4244 warnings with the MSVC compiler for 64 bit
c3340b48 2021-05-11 12:33:15 Bump version to 0.4.8.
da77b928 2021-04-15 19:14:43 CHANGELOG.md: Fix typo.
0cebd6ff 2021-04-14 18:31:18 CHANGELOG.md: Update.
b2ee4b19 2021-04-14 18:27:19 md_resolve_links: Fix the test for the nested autolink covering whole link text. This fixes the fix for #152.
bcb55d0d 2021-04-14 09:18:09 md_resolve_links: Suppress bogus nested permissive autolink. Fixes #152.
4fc808d8 2021-03-29 12:51:48 md_analyze_line: Avoid reading 1 byte beyond the input size. Fixes #155.
aa654230 2021-03-22 14:00:35 md_enter_child_containers: Propagate list mark character properly. Fixes #153, #154.
3478ec69 2021-02-23 14:01:31 Added fuzzer for oss-fuzz integration. (#151)
269bbdb3 2021-02-11 21:39:44 Fix output with --full-html command line options. Fixes #150.
fe2f2427 2021-02-11 11:35:54 Fix copy&paster error in a comment.
fd7b5fe0 2021-02-05 21: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.
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.