Skip to content

Commit 482d443

Browse files
parkeraQuietMisdreavus
authored andcommitted
Add ^ to special chars array
This prevented attributes from being parsed properly. rdar://73301600
1 parent f97a08c commit 482d443

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/commonmark.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ static CMARK_INLINE void outc(cmark_renderer *renderer, cmark_node *node,
3838
c == '*' || c == '_' || c == '[' || c == ']' || c == '#' || c == '<' ||
3939
c == '>' || c == '\\' || c == '`' || c == '~' || c == '!' ||
4040
(c == '&' && cmark_isalpha(nextc)) || (c == '!' && nextc == '[') ||
41+
(c == '^' && nextc == '[') ||
4142
(renderer->begin_content && (c == '-' || c == '+' || c == '=') &&
4243
// begin_content doesn't get set to false til we've passed digits
4344
// at the beginning of line, so...

src/inlines.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ static int8_t SPECIAL_CHARS[256] = {
13251325
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
13261326
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0,
13271327
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1328-
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1,
1328+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
13291329
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
13301330
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
13311331
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

0 commit comments

Comments
 (0)