aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--adapter/format/md2html.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/adapter/format/md2html.nim b/adapter/format/md2html.nim
index 5fb9bb9c..b14de97d 100644
--- a/adapter/format/md2html.nim
+++ b/adapter/format/md2html.nim
@@ -176,6 +176,8 @@ proc parseInline(line: openArray[char]) =
append "<!--"
i += 3
state.incl(isComment)
+ elif c == '\n' and i >= 2 and line[i - 1] == ' ' and line[i - 2] == ' ':
+ append "<BR>"
else:
append c
inc i