Open trymeouteh opened 5 months ago
Because the current implementation uses the pre-defined replacement rules before keep-rules and remove-rules. The fix is changing order of rules simply. But I can't say it's backward compatible.
The same issue is happen when user defined the custom replacement rules of strikethrough(del tag) or underline(ins tag).
Some tags such as
<b>
and<i>
do not work when passed in thekeep()
andremove()
methods. The tags are still converted to markdown even when it was instructed to either keep the tags or remove the tags.Here is an example to reproduce this...
Turndown v7.1.3