Skip to content

markdown: replace cmark with cmark-gfm for GFM tables - #1373

Merged
visualfc merged 1 commit into
masterfrom
feat/cmark-gfm
Sep 21, 2026
Merged

visualfc merged 1 commit into
masterfrom
feat/cmark-gfm

Conversation

@visualfc

Copy link
Copy Markdown
Owner

Replace the vendored CommonMark cmark 0.29.0 parser with cmark-gfm 0.29.0.gfm.13 so Markdown preview can render GFM tables and related syntax.

md2html() keeps the same API. The converter now registers GFM extensions and options:

  • tables
  • strikethrough
  • autolink
  • tagfilter
  • task lists
  • footnotes
  • CMARK_OPT_GITHUB_PRE_LANG

Also add basic table/del styles for the QTextBrowser preview CSS.

Verified with a standalone conversion of tables, strikethrough, task lists, autolinks, and footnotes to HTML, and rebuilt the Qt6 libcmark.a plus markdown/welcome plugins.

Vendor github/cmark-gfm 0.29.0.gfm.13 and enable table, strikethrough,
autolink, tagfilter, tasklist, and footnotes in the HTML converter.
@visualfc
visualfc merged commit 2d915f4 into master Sep 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant