html2markdown
html2markdown copied to clipboard
Fix for neighboring like tags leaking markdown text
Previously, neighboring like tags would cause leaking markdown text. For example, in "abcdefg", if a user selected "abc" and made it bold, then selected the "defg" and made it bold, it would leak "" around the "defg", because the markdown would look like _abc*defg__. With this PR, it will remove the last closing tag if the new opening tag is the same, and put the new contents inside the last tag. So in the example, it would create _abcdefg