all repos — hastyscribe @ 20dac6cbff67d656f645a0f81d1ad4452c4bfbb1

A professional markdown compiler.

Merge pull request #83 from tomidery/last-character-of-file-is-deleted

Fabio Cevasco h3rald@h3rald.com
Mon, 21 Jun 2021 21:08:22 +0200
commit

20dac6cbff67d656f645a0f81d1ad4452c4bfbb1

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)