all repos — hastyscribe @ 7a365ac049531ee36e0625570c2d5df046e33fe2

A professional markdown compiler.

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
commit

7a365ac049531ee36e0625570c2d5df046e33fe2

parent

3f78147af38f8722f89fec330cbd6635488bbf31

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/hastyscribepkg/markdown.nimsrc/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)