diff --git a/README.md b/README.md index 1c43fc428b4e804beaacfc492a2931d51f2b84f7..f5e22f103a31606150c076b80cb6ae1071a58e86 100644 --- a/README.md +++ b/README.md @@ -95,9 +95,9 @@ incr(X) -> Rebar customizations ==================== A set of escripts can be found under -[edown/priv/scripts/](http://github.com/esl/edown/blob/master/priv/scripts/), which +[edown/priv/scripts/](http://github.com/esl/gproc/blob/master/priv/scripts/), which can be used to customize the `rebar` built process. The -[rebar.config.script](http://github.com/esl/edown/blob/master/priv/scripts/rebar.config.script) +[rebar.config.script](http://github.com/esl/gproc/blob/master/priv/scripts/rebar.config.script) file should be copied into your application, next to `rebar.config`. It will sense if `doc` is a current target, and will then include `edown` in the `deps`; otherwise, it removes it. This way, you will @@ -161,7 +161,7 @@ markedoc The sed script bin/markedoc works in the opposite direction and converts your `README.md` to an `EDoc` file. -See [bin/MARKEDOC-README.md](http://github.com/esl/edown/blob/master/bin/MARKEDOC-README.md). +See [bin/MARKEDOC-README.md](http://github.com/esl/gproc/blob/master/bin/MARKEDOC-README.md). **FreeBSD, Mac OS X**`$ sed -E -f markedoc.sed <markdown file> > <edoc file>` @@ -172,9 +172,9 @@ See [bin/MARKEDOC-README.md](http://github.com/esl/edown/blob/master/bin/MARKEDO <table width="100%" border="0" summary="list of modules"> -<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_doclet.md" class="module">edown_doclet</a></td></tr> -<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_layout.md" class="module">edown_layout</a></td></tr> -<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_lib.md" class="module">edown_lib</a></td></tr> -<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_make.md" class="module">edown_make</a></td></tr> -<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_xmerl.md" class="module">edown_xmerl</a></td></tr></table> +<tr><td><a href="http://github.com/esl/gproc/blob/master/doc/edown_doclet.md" class="module">edown_doclet</a></td></tr> +<tr><td><a href="http://github.com/esl/gproc/blob/master/doc/edown_layout.md" class="module">edown_layout</a></td></tr> +<tr><td><a href="http://github.com/esl/gproc/blob/master/doc/edown_lib.md" class="module">edown_lib</a></td></tr> +<tr><td><a href="http://github.com/esl/gproc/blob/master/doc/edown_make.md" class="module">edown_make</a></td></tr> +<tr><td><a href="http://github.com/esl/gproc/blob/master/doc/edown_xmerl.md" class="module">edown_xmerl</a></td></tr></table> diff --git a/src/edown_xmerl.erl b/src/edown_xmerl.erl index d3a5472dc654561754937b0227bb75781ad01cca..3d33997a8438a65cd1c6baa00fef550b0ce138f5 100644 --- a/src/edown_xmerl.erl +++ b/src/edown_xmerl.erl @@ -92,6 +92,8 @@ brstrip(Str) -> re:replace(Str, "\\s+\\s\$", "", [global, multiline, unicode]). #xmlElement{attributes = Attrs1, parents = Parents1} = E1 -> elem(a, Data, Attrs1, Parents1, E1) end; +'#element#'(br, _, _, _, _) -> + ["<br />"]; '#element#'(Tag, Data, Attrs, Parents, E) -> elem(Tag, Data, Attrs, Parents, E).