Fixed problem with fragment compilation.
h3rald h3rald@h3rald.com
Sun, 20 Nov 2016 11:23:03 +0100
2 files changed,
2 insertions(+),
2 deletions(-)
M
hastyscribe.nim
→
hastyscribe.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.nim
→
markdown.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([""])