Update hastyscribe.nim
Fabio Cevasco h3rald@h3rald.com
Mon, 16 Dec 2013 17:18:37 +0100
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
hastyscribe.nim
→
hastyscribe.nim
@@ -1,4 +1,4 @@
-import os, parseopt, strutils, times, pegs, base65, markdown +import os, parseopt, strutils, times, pegs, base64, markdown let v = "1.0" let usage = " HastyScribe v" & v & " - Self-contained Markdown Compiler" & """@@ -62,7 +62,7 @@ let imgcontent = encode_image(imgfile, imgformat)
let imgrep = imgsrc.replace(imgpegf, "\""& imgcontent &"\"") imgdata.add((img: imgsrc, rep: imgrep)) for i in imgdata: - doc = document.replace(i.img, i.rep) + doc = doc.replace(i.img, i.rep) return doc proc convert_file(input_file: string) =