Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with HTML Diff Visualization (em and strong tags) #35

Open
moe-khan123 opened this issue Oct 29, 2019 · 0 comments
Open

Issue with HTML Diff Visualization (em and strong tags) #35

moe-khan123 opened this issue Oct 29, 2019 · 0 comments

Comments

@moe-khan123
Copy link

moe-khan123 commented Oct 29, 2019

Hi, great library and it works well in most text scenarios. I have found a scenario where it broke.

Old Text: Canadian artists and artistic groups by encouraging
New Text: <em>Canadian </em><strong>artists and artistic groups by encouraging
Result: <em><ins class='mod'>Canadian </em><strong>artists and artistic groups by encouraging

Expected Result: <em><ins class='mod'>Canadian </em><strong>artists and artistic groups by encouraging </ins>

Currently, the browser automatically closes the ins tag after the word "Canadian". There is no closing ins tag. the whole sentence should be highlighted in a light brown colour because the new text has bolds and italics in there.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant