diff --git a/README.md b/README.md index c22f92632ab2186f3f6a3e637354360e1321f8a3..343f552f5b6dce72075dc47c802d056f5b5d3160 100644 --- a/README.md +++ b/README.md @@ -76,9 +76,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 @@ -142,7 +142,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>` @@ -153,9 +153,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 2a8abe2be9f19cf53f5087c4bfe70118ff24c8e4..81ef1a2bef51a8a213ac0d31dcf60f77fee45dd4 100644 --- a/src/edown_xmerl.erl +++ b/src/edown_xmerl.erl @@ -91,6 +91,8 @@ brstrip(Str) -> re:replace(Str, "\\s+\\s\$", "", [global, multiline]). #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).