html2markdown icon indicating copy to clipboard operation
html2markdown copied to clipboard

Fix for neighboring like tags leaking markdown text

Open dylanbussone opened this issue 10 years ago • 0 comments

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

dylanbussone avatar Feb 17 '15 22:02 dylanbussone