Nim/lib
singularperturbation 4c1611fc13 Fix for image directive with periods
Saw in https://github.com/nim-lang/nimforum/issues/41 that there was an
issue in rendering inline images.  Traced back through rstgen and found
that it was not counting something like:

`.. image:: http://i.imgur.com/oCem13Y.png` as valid since it contained
a period, and this wasn't in the set of valid characters, so the empty
string is returned by default.

Added a period to the allowable characters, and now renders correctly.

Test case:
```
import rst, rstgen, strtabs

var docConfig: StringTableRef

docConfig = rstgen.defaultConfig()
docConfig["doc.smiley_format"] = "/images/smilieys/$1.png"

proc rstToHtml(content: string): string =
    result = rstgen.rstToHtml(content, {roSupportSmilies,roSupportMarkdown},
                              docConfig)

var a: string = rstToHtml(".. image:: http://i.imgur.com/oCem13Y.png")
echo a
```
2015-08-02 14:16:53 -05:00
..
core removed macros.high as it never worked outside of macros.nim 2015-07-28 02:54:21 +02:00
impure proper distinction between --gc:none and --os:standalone 2015-06-29 02:48:33 +02:00
js Reverted all changes 2015-06-04 13:18:42 +02:00
packages/docutils Fix for image directive with periods 2015-08-02 14:16:53 -05:00
posix Add popen()/pclose() support to posix.nim 2015-07-01 02:39:45 +02:00
pure Set correct Host in request header 2015-08-01 20:53:37 +01:00
system fixes #3080 2015-08-02 02:56:02 +02:00
windows Fixes net/asyncdispatch on Windows. Ref #2976. Fixes #2996. 2015-06-25 22:38:17 +01:00
wrappers rename lib/wrappers/linenoise/linenoise.{c,h} 2015-07-09 16:21:38 +02:00
cycle.h Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
nimbase.h fixes #2841 2015-07-22 17:08:21 +02:00
nimrtl.nim Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
nimrtl.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
prelude.nim Nimrod renamed to Nim 2014-08-28 09:59:26 +02:00
stdlib.nimble VM supports math and a few os procs 2014-08-30 16:37:27 +02:00
system.nim Merge pull request #2699 from SSPkrolik/newrefref 2015-08-02 11:05:47 +02:00