about summary refs log tree commit diff stats
path: root/adapter/format
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-01 14:59:13 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-01 14:59:13 +0100
commit452cb7323eae6c438cd828632748aaa13fb92b0e (patch)
tree7fb0a119d0c5042765623dd9f4e1820e775251a3 /adapter/format
parent41d4ddaee06971a6f4520d9ff805e0dfeecc522b (diff)
downloadchawan-452cb7323eae6c438cd828632748aaa13fb92b0e.tar.gz
md2html: skip space after list item start
Diffstat (limited to 'adapter/format')
-rw-r--r--adapter/format/md2html.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/adapter/format/md2html.nim b/adapter/format/md2html.nim
index f2ccac0b..2dc14404 100644
--- a/adapter/format/md2html.nim
+++ b/adapter/format/md2html.nim
@@ -272,7 +272,7 @@ proc parseNone(state: var ParseState, line: string) =
     state.listDepth = n
     state.hasp = false
     state.pushList(t)
-    state.blockData = line.substr(len) & "\n"
+    state.blockData = line.substr(len + 1) & "\n"
   else:
     state.blockType = btPar
     state.hasp = true
@@ -305,7 +305,7 @@ proc parseList(state: var ParseState, line: string) =
       state.pushList(t)
     stdout.write("<LI>")
     state.listDepth = n
-    state.blockData = line.substr(len) & "\n"
+    state.blockData = line.substr(len + 1) & "\n"
   else:
     state.blockData &= line & "\n"