Last character of the file was truncated. With empty files the md function caused buffer read-over and returned garbage result
kaminski kaminski@naew.nato.int
Tue, 11 May 2021 23:21:08 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/hastyscribepkg/markdown.nim
→
src/hastyscribepkg/markdown.nim
@@ -164,7 +164,7 @@ else:
# incomplete metadata, remove the whole pandoc section to not confuse discount contents = contents[e-1 .. ^1] var str = cstring(contents) - var mmiot = mkd_string(str, cint(str.len-1), flags) + var mmiot = mkd_string(str, cint(str.len), flags) if valid_metadata: data.title = $mkd_doc_title(mmiot) data.author = $mkd_doc_author(mmiot)