nabbisen / mdka-rs

HTML to Markdown (MD) converter written in Rust
Apache License 2.0
26 stars 2 forks source link

`<em>` is not always rendered correctly #41

Open getreu opened 3 months ago

getreu commented 3 months ago

Consider the following input:

<em>Ein Standpunkt von <strong>Rüdiger Rauls.</strong></em></p>

Here the current rendition:

*Ein Standpunkt von **Rüdiger Rauls.** * 

which can not be parsed properly.

Suggestion

that works in all circumstances:

_Ein Standpunkt von **Rüdiger Rauls.**_

Note that there is no space between _E and *_ ! See also: emphasis-and-strong-emphasis

nabbisen commented 3 months ago

This issue is not <em> specific but caused by nested nodes.