Open josh- opened 2 years ago
Thanks for the report, Josh! I apologize for the delay. I've been pretty tied up in recent months.
I agree that this shouldn't happen. Whitespace should be replaced by a single space, and broken markdown is never good.
I've got a bit of catching up to do, but I will add this to the list and take a look as soon as I can. If you (or anyone else) is up to it in the interim, PRs are welcome!
Thanks again!
When I was working on
@types/node
using the script which generates new type definitions from the node docs, I noticed thatnode-html-markdown
doesn't appear to replace newlines with whitespace when they occur immediately before an<em>
tag, which can result in potentially broken markdown.Here is an example test:
I was wondering whether this was a bug or was intentional? Thanks!