5 Commits

Author SHA1 Message Date
Wang Mingyu 2b43bc24f6 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>
2026-05-12 01:06:51 -07:00
Alexander Kanavin fc78d37ff0 meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Wang Mingyu af4bce0de3 md4c: upgrade 0.5.0 -> 0.5.2
Changes:
===========
- The specification expands set of Unicode characters seen by Markdown
  parser as a punctuation. Namely all Unicode general categories P
  (punctuation) and S (symbols) are now seen as such.
- The definition of HTML comment has been changed so that '<!-->' and
  '<!--->' are also recognized as HTML comments.
- HTML tags recognized as HTML block starting condition of type 4 has been
  updated, namely a tag '<source>' has been removed, whereas '<search>'
  added.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-09 09:52:08 -08:00
Wang Mingyu 3fd4d0e853 md4c: upgrade 0.4.8 -> 0.5.0
License-Update: Copyright year updated to 2024.

Changelog:
 https://github.com/mity/md4c/blob/master/CHANGELOG.md

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-23 11:55:34 -08:00
Sebastian Suesens 0c1f379f42 md4c: added md4c lib
MD4C is Markdown parser implementation in C.

Signed-off-by: Sebastian Suesens <sebastian.suesens@baslerweb.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-17 19:19:40 -07:00