all repos — hastyscribe @ b0021efe6a093e424f994dd3cdb0f60137b5e4d5

A professional markdown compiler.

Update hastyscribe.nim
Fabio Cevasco h3rald@h3rald.com
Mon, 16 Dec 2013 17:18:37 +0100
commit

b0021efe6a093e424f994dd3cdb0f60137b5e4d5

parent

952ef35cef2332ed5c4dea61410437fa2d30e61e

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

jump to
M hastyscribe.nimhastyscribe.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) =