Skip to content

Commit 5b3d12b

Browse files
initialize node flags when registering core extensions
1 parent 496832d commit 5b3d12b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extensions/core-extensions.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "cmark-gfm-core-extensions.h"
22
#include "autolink.h"
33
#include "mutex.h"
4+
#include "node.h"
45
#include "strikethrough.h"
56
#include "table.h"
67
#include "tagfilter.h"
@@ -26,4 +27,8 @@ static void register_plugins(void) {
2627

2728
void cmark_gfm_core_extensions_ensure_registered(void) {
2829
CMARK_RUN_ONCE(registered, register_plugins);
30+
31+
// Also initialize the standard node flags if they haven't been already, in case an existing
32+
// caller has not updated their code but is already registering the core extensions.
33+
cmark_init_standard_node_flags();
2934
}

0 commit comments

Comments
 (0)