all repos — hastyscribe @ 530809b4301f39ec829a6e26612dd9185622b024

A professional markdown compiler.

Fixed problem with fragment compilation.
h3rald h3rald@h3rald.com
Sun, 20 Nov 2016 11:23:03 +0100
commit

530809b4301f39ec829a6e26612dd9185622b024

parent

e34933753122d53423c4ad67a3e2af3147acd94b

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

jump to
M hastyscribe.nimhastyscribe.nim

@@ -243,7 +243,7 @@ hs.parse_fields()

hs.parse_snippets() hs.parse_macros() # Process markdown - hs.document = hs.document.md(MKD_EXTRA_FOOTNOTE) + hs.document = hs.document.md(MKD_EXTRA_FOOTNOTE or MKD_NOHEADER) return hs.document proc compileDocument*(hs: var HastyScribe, input, dir: string): string {.discardable.} =
M markdown.nimmarkdown.nim

@@ -132,7 +132,7 @@ css*: string

proc md*(s: string, f = 0): string = var flags = uint32(f) - var str = cstring(s) + var str = cstring(s&" ") var mmiot = mkd_string(str, cint(str.len-1), flags) discard mkd_compile(mmiot, flags) var res = allocCStringArray([""])