summaryrefslogtreecommitdiff
path: root/app-text/cmark/files/cmark-0.31.0_fix_api_test.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-12 00:33:29 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-12 00:33:29 +0100
commit3a6d209caa07e3be8e8423251b70c8bbeeedb17f (patch)
treeaa94c255fa1bd982214ca518fb93d674cc253101 /app-text/cmark/files/cmark-0.31.0_fix_api_test.patch
parent1f43daba2fbe6f53e67c63944941dc645657c5b3 (diff)
gentoo auto-resync : 12:04:2024 - 00:33:28
Diffstat (limited to 'app-text/cmark/files/cmark-0.31.0_fix_api_test.patch')
-rw-r--r--app-text/cmark/files/cmark-0.31.0_fix_api_test.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/app-text/cmark/files/cmark-0.31.0_fix_api_test.patch b/app-text/cmark/files/cmark-0.31.0_fix_api_test.patch
new file mode 100644
index 000000000000..defecc445c4e
--- /dev/null
+++ b/app-text/cmark/files/cmark-0.31.0_fix_api_test.patch
@@ -0,0 +1,17 @@
+https://github.com/commonmark/cmark/commit/a739d4911b5fa5586679b8e55999719cc910d26b
+From: John MacFarlane <jgm@berkeley.edu>
+Date: Wed, 13 Mar 2024 14:31:28 -0700
+Subject: [PATCH] Flag root node as open...
+
+in `cmark_parser_new_with_mem_into_root`. Closes #532.
+--- a/src/blocks.c
++++ b/src/blocks.c
+@@ -98,6 +98,8 @@ cmark_parser *cmark_parser_new_with_mem_into_root(int options, cmark_mem *mem, c
+ cmark_strbuf_init(mem, &parser->linebuf, 0);
+ cmark_strbuf_init(mem, &parser->content, 0);
+
++ root->flags = CMARK_NODE__OPEN;
++
+ parser->refmap = cmark_reference_map_new(mem);
+ parser->root = root;
+ parser->current = root;