about summary refs log tree commit diff stats
path: root/adapter
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-01 14:56:30 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-01 14:56:30 +0100
commit41d4ddaee06971a6f4520d9ff805e0dfeecc522b (patch)
tree479c35e9d5e2d5b7da769aa1ca889830b9b8b1d2 /adapter
parentf1865ec20513dfe98634252257e2e28fe025b163 (diff)
downloadchawan-41d4ddaee06971a6f4520d9ff805e0dfeecc522b.tar.gz
md2html: detect lists starting with dash
Diffstat (limited to 'adapter')
-rw-r--r--adapter/format/md2html.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/format/md2html.nim b/adapter/format/md2html.nim
index 1d68e7b9..f2ccac0b 100644
--- a/adapter/format/md2html.nim
+++ b/adapter/format/md2html.nim
@@ -182,7 +182,7 @@ proc getListDepth(line: string): tuple[depth, len: int, ol: ListType] =
       depth += 8
     elif c == ' ':
       inc depth
-    elif c == '*':
+    elif c in {'*', '-'}:
       let i = i + 1
       if i < line.len and line[i] in {'\t', ' '}:
         return (depth, i, ltUl)