summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-12-28 15:10:51 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-12-28 15:10:51 (GMT)
commite89eb77b14810649c679dc7d377ddb4e6a942d82 (patch)
treef0be353d976fdd45836d166897dbeec1bfef69bb
parent205f7335bca570e87afc0df07bd355848c7af2e3 (diff)
downloadDoxygen-e89eb77b14810649c679dc7d377ddb4e6a942d82.zip
Doxygen-e89eb77b14810649c679dc7d377ddb4e6a942d82.tar.gz
Doxygen-e89eb77b14810649c679dc7d377ddb4e6a942d82.tar.bz2
Bug 752845 - Non-alphanumeric characters in Markdown links don't work properly
-rw-r--r--src/markdown.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 6c5b4c8..6ff8344 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -589,8 +589,8 @@ static int processHtmlTag(GrowBuf &out,const char *data,int offset,int size)
static int processEmphasis(GrowBuf &out,const char *data,int offset,int size)
{
if ((offset>0 && !isOpenEmphChar(-1)) || // invalid char before * or _
- (size>1 && data[0]!=data[1] && !isIdChar(1)) || // invalid char after * or _
- (size>2 && data[0]==data[1] && !isIdChar(2))) // invalid char after ** or __
+ (size>1 && data[0]!=data[1] && !(isIdChar(1) || data[1]=='[')) || // invalid char after * or _
+ (size>2 && data[0]==data[1] && !(isIdChar(2) || data[2]=='['))) // invalid char after ** or __
{
return 0;
}