md4c: Upgrade to 0.5.3

Change-Id: I6cc36b76270a5e9a4f51f8ecc5cee15406ab7871
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1219
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit de72ccd35fc7b6037e6725185d8efbf93f1445cc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204017
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Ujjawal Kumar
2026-04-22 08:55:04 +02:00
committed by Xisco Fauli
parent c0bcb27b79
commit 82820cf5e8
4 changed files with 3 additions and 35 deletions
+2 -2
View File
@@ -642,8 +642,8 @@ REVENGE_TARBALL := librevenge-0.0.$(REVENGE_VERSION_MICRO).tar.bz2
# three static lines
# so that git cherry-pick
# will not run into conflicts
MD4C_SHA256SUM := 55d0111d48fb11883aaee91465e642b8b640775a4d6993c2d0e7a8092758ef21
MD4C_TARBALL := md4c-release-0.5.2.tar.gz
MD4C_SHA256SUM := 353c346f376b87c954a13f3415ede2d51264cc61dc5abcd38ff1d2aa0d059b9e
MD4C_TARBALL := md4c-release-0.5.3.tar.gz
# three static lines
# so that git cherry-pick
# will not run into conflicts
-25
View File
@@ -1,25 +0,0 @@
From 66526366b67e3b42eb4c30cefa6f5efdff690c8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolan.mcnamara@collabora.com>
Date: Sat, 26 Jul 2025 21:38:34 +0100
Subject: [PATCH] const up scheme_map
---
src/md4c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/md4c.c b/src/md4c.c
index e3f5cf9..947f5c9 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -3238,7 +3238,7 @@ md_collect_marks(MD_CTX* ctx, const MD_LINE* lines, MD_SIZE n_lines, int table_m
/* A potential permissive URL autolink. */
if(ch == _T(':')) {
- static struct {
+ static const struct {
const CHAR* scheme;
SZ scheme_size;
const CHAR* suffix;
--
2.49.0
-7
View File
@@ -10,12 +10,5 @@
$(eval $(call gb_UnpackedTarball_UnpackedTarball,md4c))
$(eval $(call gb_UnpackedTarball_set_tarball,md4c,$(MD4C_TARBALL)))
# 0001-const-up-scheme_map.patch.1 effort to upstream at:
# https://github.com/mity/md4c/pull/291
$(eval $(call gb_UnpackedTarball_add_patches,md4c,\
external/md4c/0001-const-up-scheme_map.patch.1 \
))
# vim: set noet sw=4 ts=4:
+1 -1
View File
@@ -134,7 +134,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf169884_import_crash)
CPPUNIT_ASSERT_EQUAL(OUString("Selected range of Release "
"note\nhttps://wiki.documentfoundation.org/ReleaseNotes/"
"26.2#Markdown::text=Added%20support%20for%20importing%20from%"
"26.2#Markdown:~:text=Added%20support%20for%20importing%20from%"
"20Markdown%20format"),
getParagraph(1)->getString());
}