Skip to content

Commit c3fe3e5

Browse files
committed
issue #10696 markdown: allow italizing parentheses
This fixes a problem where in the text: hello *(something about world)* the (something about world) was not getting italized. And add a documentation comment while at it.
1 parent 82beb40 commit c3fe3e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/markdown.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,12 @@ enum class ExplicitPageResult
7878
(c>='0' && c<='9') || \
7979
(static_cast<unsigned char>(c)>=0x80)) // unicode characters
8080

81+
// is character allowed right at the beginning of an emphasis section
8182
#define extraChar(c) \
8283
(c=='-' || c=='+' || c=='!' || \
8384
c=='?' || c=='$' || c=='@' || \
8485
c=='&' || c=='*' || c=='%' || \
85-
c=='[')
86+
c=='[' || c=='(')
8687

8788
// is character at position i in data allowed before an emphasis section
8889
#define isOpenEmphChar(c) \

0 commit comments

Comments
 (0)