giflw / remark-java

Remark is a HTML to Markdown library forked from https://bitbucket.org/OverZealous/remark (mercurial repository)
Other
26 stars 32 forks source link

Span With Whitespace Not Converted Correctly #10

Open eum2o opened 4 years ago

eum2o commented 4 years ago

Detected in version: 1.1.0

Example code:

public static void main(String[] args) {
    final String html = "<html><body><b><i>Foo</i></b><span> </span><b><i>Bar</i></b></html></body>";
    final Remark remark = new Remark(Options.markdown());
    remark.setCleanedHtmlEchoed(false);
    System.out.println(remark.convert(html));
}

Actual Output ***Foo******Bar***

Expected Output ***Foo*** ***Bar***