diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-01 14:59:13 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-01 14:59:13 +0100 |
commit | 452cb7323eae6c438cd828632748aaa13fb92b0e (patch) | |
tree | 7fb0a119d0c5042765623dd9f4e1820e775251a3 /adapter/format | |
parent | 41d4ddaee06971a6f4520d9ff805e0dfeecc522b (diff) | |
download | chawan-452cb7323eae6c438cd828632748aaa13fb92b0e.tar.gz |
md2html: skip space after list item start
Diffstat (limited to 'adapter/format')
-rw-r--r-- | adapter/format/md2html.nim | 4 |
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" |