summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-11-01 15:15:17 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-11-01 15:15:17 (GMT)
commit5487f855ad12d0b7f3ba70aab72fd2debedae16d (patch)
treebe6d1f5945ca4f3e7cced3ae423e558d3f7a24d4 /src/markdown.cpp
parente44780a7579ca865cc52801e920b1d20d2a3b438 (diff)
downloadDoxygen-5487f855ad12d0b7f3ba70aab72fd2debedae16d.zip
Doxygen-5487f855ad12d0b7f3ba70aab72fd2debedae16d.tar.gz
Doxygen-5487f855ad12d0b7f3ba70aab72fd2debedae16d.tar.bz2
Bug 756604 - Unable to prevent a numbered list
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 9ff139c..26acfbc 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -1017,8 +1017,8 @@ static int processSpecialCommand(GrowBuf &out, const char *data, int offset, int
if (size>1 && data[0]=='\\')
{
char c=data[1];
- if (c=='[' || c==']' || c=='*' || c=='+' || c=='-' ||
- c=='!' || c=='(' || c==')' || c=='.' || c=='`' || c=='_')
+ if (c=='[' || c==']' || c=='*' || /* c=='+' || c=='-' || c=='.' || */
+ c=='!' || c=='(' || c==')' || c=='`' || c=='_')
{
if (c=='-' && size>3 && data[2]=='-' && data[3]=='-') // \---
{
@@ -1030,7 +1030,11 @@ static int processSpecialCommand(GrowBuf &out, const char *data, int offset, int
out.addStr(&data[1],2);
return 3;
}
- out.addStr(&data[1],1);
+ else if (c=='-') // \-
+ {
+ out.addChar(c);
+ }
+ out.addChar(data[1]);
return 2;
}
}