From 4342a3de36c116c3b0b4e026ac233bd58e11283a Mon Sep 17 00:00:00 2001 From: Sam O'Connor Date: Sun, 20 Aug 2017 17:14:36 +1000 Subject: [PATCH] work around for https://github.com/domchristie/to-markdown/issues/181 --- src/HTML2MD.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/HTML2MD.jl b/src/HTML2MD.jl index 3eb8913..ab823e8 100644 --- a/src/HTML2MD.jl +++ b/src/HTML2MD.jl @@ -100,7 +100,12 @@ function html2md(html) html = replace(html, "\$", "\\\$") html = replace(html, "\"\"\"", "\\\"\\\"\\\"") - String(post(URI("http://localhost:$tcp_port"), html).data) + md = String(post(URI("http://localhost:$tcp_port"), html).data) + + # Work around for https://github.com/domchristie/to-markdown/issues/181 + md = replace(md, "\\.", ".") + + return md end