summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index c4dd9fb..06b714a 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -1501,8 +1501,11 @@ static bool isFencedCodeBlock(const char *data,int size,int refIndent,
while (i<size && data[i]==' ') i++;
if (i==size || data[i]=='\n')
{
- offset=i;
- return endTildes==startTildes;
+ if (endTildes==startTildes)
+ {
+ offset=i;
+ return TRUE;
+ }
}
}
i++;