md4c: upgrade 0.5.2 -> 0.5.3

Changes:
==========
- Avoid repeated prefix language- in code block language specification if the
  input already explicitly includes the prefix.
- Permissive autolink extensions (MD_FLAG_PERMISSIVExxxAUTOLINKS) are now tiny
  bit more permissive, allowing + and - characters to be anywhere in the path
  portion of the URL. This also improves compatibility with GFM.
- Make Unicode-specific code compliant to Unicode 18.0.

Fixes: ===========
- #236: Fix quadratic time behavior caused by one-by-one walking over block
  lines instead of calling md_lookup_line().
- #238: Fix quadratic time and output size behavior caused by malicious misuse
  of link reference definitions.
- #242: The strike-through extension (with flag MD_FLAG_STRIKETHROUGH) now
  follows same logic as other emphasis spans in respect to punctuation
  character and word boundaries.
- #248: Fix handling tab when removing trailing whitespace, especially in
  connection with ATX headers.
- #266: We now correctly abort the parser when a callback returns non-zero.
  (Previously it worked correctly only for negative values, values greater than
  zero were causing strange and inconsistent behavior.)
- #271: Fix handling a code span whose closer is on the next line and yet
  another text follows. In the case we erroneously outputted the closer code
  span mark as part of the text.
- #275: Fix md_decode_utf16le_before__(). (Only affected MD4C builds built with
  -MD4C_USE_UTF16 on Windows.)
- #278, #294: Do not try to interpret characters in a link URL as Markdown
  syntax characters.
- #292: Fix detection of closing code block fence if it has a trailing
  tabulator.
- #299: Fix invalid free() in an error path.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Wang Mingyu
2026-04-30 18:48:40 +08:00
committed by Khem Raj
parent 87ab23999f
commit 88a60a81da
@@ -8,9 +8,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=383f39920f391605af6e8e46e60e2378"
SRC_URI = " \
git://github.com/mity/md4c.git;protocol=https;branch=master \
git://github.com/mity/md4c.git;protocol=https;branch=master;tag=release-${PV} \
"
SRCREV = "729e6b8b320caa96328968ab27d7db2235e4fb47"
SRCREV = "472c417005c2c71b8617de4f7b8d6b30411d78f4"
inherit cmake