Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html2md Unexpectedly Adds Whitespace #422

Open
eum2o opened this issue Sep 14, 2020 · 0 comments
Open

html2md Unexpectedly Adds Whitespace #422

eum2o opened this issue Sep 14, 2020 · 0 comments

Comments

@eum2o
Copy link

eum2o commented Sep 14, 2020

Detected in version: 0.62.2 (flexmark-all)

Problem

If a line contains a : and <br/> the html converter unexpectedly adds a whitespace before the :. See examples below.

Example 1

Code

final String html = "<b>Foo</b>:<br/>bar";
final String md = FlexmarkHtmlConverter.builder().build().convert(html);
System.out.println(md);

Actual Output

**Foo** :  
bar

Expected Output

**Foo**:  
bar

Example 2

Code

final String html = "<b>Foo</b>: bar<br/>";
final String md = FlexmarkHtmlConverter.builder().build().convert(html);
System.out.println(md);

Actual Output

**Foo** : bar  

Expected Output

**Foo**: bar  
@eum2o eum2o changed the title html2md Unwantedly Adds Whitespace html2md Unexpectedly Adds Whitespace Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant