You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import*asnhmfrom"https://cdn.skypack.dev/[email protected]"constservice=newnhm.NodeHtmlMarkdown({})functionexample(html: string){console.log("input:")console.log(html)console.log("output:")console.log(service.translate(html))}// The space between these two links disappears:example(` <a href="http://www.google.com">Link One</a> <a href="https://www.wikipedia.org/">Link Two</a>`)
Output:
Maintainer's Note
This issue is due to the fact that trailing whitespace should be treated as a space between any element.
Therefore, this has a broader range of impact that
a
tags. Example:<span>test</span> <span>test2</span>
improperly renders astesttest2
Our upstream parser does not add nodes or range information in order to get the whitespace. I am submitting a PR to fix this.
The text was updated successfully, but these errors were encountered: