-
Notifications
You must be signed in to change notification settings - Fork 52
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
Diff of bold, italic, underline and strikethrough differs #85
Comments
Could you check if this problem still persist in the latest version? |
I can confirm that this problem still exists in the latest version. |
@ghry5 Would you have a |
As an example following
|
@ghry5 (cc: @qstiegler) I looked into this issue today and found out that its because of the Its always scary to change these types of things, since it means that output will change after an update. After thinking about it a bit I think the best thing to-do here is to remove the text-styling tags from that list, and just keep the element tags (such as Meaning that the changes of styling can be styled by making a css class for |
If you compare
<p>This is a text</p>
with the same text in bold
<p><strong>This is a text</strong></p>
,the result is
<p><del class="diffmod">This is a text</del><strong class="diffmod"><ins class="mod"><ins class="diffmod">This is a text</ins></ins></strong></p>
If you compare
<p>This is a text</p>
with the same text in italic
<p><em>This is a text</em></p>
,the result is
<p><del class="diffmod">This is a text</del><em class="diffmod"><ins class="diffmod">This is a text</ins></em></p>
If you compare
<p>This is a text</p>
with the same text underlined
<p><u>This is a text</u></p>
,the result is
<p><u class="diffmod"><ins class="mod">This is a text</ins></u></p>
If you compare
<p>This is a text</p>
with the same text struck through
<p><u>This is a text</u></p>
,the result is
<p><s class="diffmod"><ins class="mod">This is a text</ins></s></p>
I'm not 100% sure whats the correct way but it should be the same for all of them. I'm not able to style the diff properly.
The text was updated successfully, but these errors were encountered: