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

String <s/'s> in H1 element creates strikethrough of several elements throughout the book #3698

Open
MichSpieler opened this issue May 8, 2024 · 3 comments

Comments

@MichSpieler
Copy link
Contributor

Description

A user reported seeing strikethrough in text formatting where none was applied.
image

This could be traced back to a string that appears repeatedly in a chapter: <s/'s> (in the visual editor, in the text editor displayed as &lt;s/’s&gt;). This only seems to create an issue if the string appears inside an H1 element. If the apostrophe/single quote in the string is deleted, the strikethrough effect disappears. Escaping the apostrophe/single quote (replacing it in the text editor with &39; did not resolve the problem as upon leaving the text editor, the string &39; was converted into a apostrophe/single quote '

Steps to Reproduce

  1. Create an H1 in a chapter
  2. Add the string <s/'s> to it
  3. Save and view the chapter

Expected behavior:
The string is displayed without any effect on other text in the book.

Actual behavior:
Strikethrough is applied to many elements.

@MichSpieler
Copy link
Contributor Author

Removing the apostrophe (that is not escaped in the text editor) from the string solves the problem. The apostrophe alone does not create an issue.

@MichSpieler
Copy link
Contributor Author

The user who reported this has removed the < and > characters from the H1 element as a work around.

@MichSpieler
Copy link
Contributor Author

This is the source code of the chapter's page (in my testbook). It has a <s> element before the main element. This element appears in other chapters as well.
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