all repos — hastyscribe @ f9c4cb504bec16a5b0aae42b9518d583da4ca564

A professional markdown compiler.

Fixed data-uri syntax for images.
h3rald h3rald@h3rald.com
Tue, 14 Oct 2014 22:19:54 +0200
commit

f9c4cb504bec16a5b0aae42b9518d583da4ca564

parent

5470236e05363eb5eff4c7c55ca7a2be405348a6

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

jump to
M doc/HastyScribe_UserGuide.htmdoc/HastyScribe_UserGuide.htm

@@ -229,12 +229,12 @@ <h2 id="Getting.Started">Getting Started<a href="#document-top" title="Go to top"></a></h2>

<h3 id="Downloading.Pre-built.Binaries">Downloading Pre-built Binaries<a href="#document-top" title="Go to top"></a></h3> -<p>The easiest way to get HastyScribe is by downloading one of the prebuilt binaries from the <a href="https://github.com/h3rald/hastyscribe/releases/download/v1.0.3">Github Release Page</a>:</p> +<p>The easiest way to get HastyScribe is by downloading one of the prebuilt binaries from the <a href="https://github.com/h3rald/hastyscribe/releases/download/v1.0.4">Github Release Page</a>:</p> <ul> -<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.0.3/hastyscribe_v1.0.3_macosx_x86.zip">HastyScribe for Mac OS X</a> &ndash; Compiled on OS X Mavericks (LLVM CLANG 6.0)</li> -<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.0.3/hastyscribe_v1.0.3_windows_x86.zip">HastyScribe for Windows</a> &ndash; Cross-compiled on OS X Mavericks (MinGW GCC 4.8.0)</li> -<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.0.3/hastyscribe_v1.0.3_linux_x86.zip">HastyScribe for Linux (Ubuntu)</a> &ndash; Cross-compiled on OS X Mavericks (GNU GCC 4.8.1)</li> +<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.0.4/hastyscribe_v1.0.4_macosx_x86.zip">HastyScribe for Mac OS X</a> &ndash; Compiled on OS X Mavericks (LLVM CLANG 6.0)</li> +<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.0.4/hastyscribe_v1.0.4_windows_x86.zip">HastyScribe for Windows</a> &ndash; Cross-compiled on OS X Mavericks (MinGW GCC 4.8.0)</li> +<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.0.4/hastyscribe_v1.0.4_linux_x86.zip">HastyScribe for Linux (Ubuntu)</a> &ndash; Cross-compiled on OS X Mavericks (GNU GCC 4.8.1)</li> </ul>

@@ -1104,7 +1104,7 @@ </ul>

</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; October 4, 2014</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; October 14, 2014</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </body>
M hastyscribe.nimhastyscribe.nim

@@ -82,7 +82,7 @@ var matches:TImgTagStart

discard img.match(img_peg, matches) let imgfile = matches[0] if imgfile.startsWith(peg"'data:'"): continue - let pegimgformat = peg"'.' i'' / i'png' / i'jpg' / i'jpeg' / i'gif' / i'svg' / i'bmp' / i'webp' @$" + let pegimgformat = peg"i'.png' / i'.jpg' / i'.jpeg' / i'.gif' / i'.svg' / i'.bmp' / i'.webp' @$" let imgformat = imgfile.substr(imgfile.find(pegimgformat)+1, imgfile.len-1) let imgcontent = encode_image_file(current_dir & imgfile, imgformat) let imgrep = img.replace("\"" & img_file & "\"", "\"" & imgcontent & "\"")