html-to-markdown icon indicating copy to clipboard operation
html-to-markdown copied to clipboard

🐛 Bug: spurious whitespace insertion

Open ashishb opened this issue 3 months ago • 4 comments

Describe the bug A clear and concise description of what the bug is.

HTML Input

<p><a href="https://example.com">Hello world</a>. "<a href="https://example.com">Example 1</a>".</p>

Generated Markdown

[Hello world](https://example.com). " [Example 1](https://example.com)".

Expected Markdown

[Hello world](https://example.com). "[Example 1](https://example.com)".

Additional context Spurious whitespace is inserted before links

Ref: https://github.com/ashishb/wp2hugo/issues/11

ashishb avatar Apr 07 '24 23:04 ashishb