You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jgarber Are you aware of this issue? any quick-around you can suggest for this to get working?
Currently, the gem includes a behavior that automatically adds a span tag around capitalized words in the input text, which cannot be disabled. This behavior causes issues when the input includes content within svg tags, as it also adds the span tag inside the svg code.
For example, given the following input text:
* is a _shorthand syntax_ used to generate valid HTML
The resulting HTML output includes the span tag:
<ul>
<li>is a <em>shorthand syntax</em> used to generate valid <span class="caps">HTML</span></li>
</ul>
The problem arises when there is an all-capitalized color hex code inside the svg tag. The gem adds a span tag around it, causing the SVG code to break. For instance, the original SVG code:
This unintended addition of the span tag within the SVG code causes issues with its rendering.
We need to find a solution to disable this span tag addition for content within svg tags.
Please address this issue to ensure the proper functioning of the gem with SVG content.
Thank you.
The text was updated successfully, but these errors were encountered:
Jaskaran2
changed the title
RedCloth add's span tag with caps class around capitalized words without an option for skipping this behaviour.
RedCloth add's span tag around capitalized words inside svg tags.
Aug 1, 2023
Jaskaran2
changed the title
RedCloth add's span tag around capitalized words inside svg tags.
Unwanted Span Tag Addition Inside SVG Tags
Aug 1, 2023
@jgarber Are you aware of this issue? any quick-around you can suggest for this to get working?
Currently, the gem includes a behavior that automatically adds a span tag around capitalized words in the input text, which cannot be disabled. This behavior causes issues when the input includes content within svg tags, as it also adds the span tag inside the svg code.
For example, given the following input text:
* is a _shorthand syntax_ used to generate valid HTML
The resulting HTML output includes the span tag:
The problem arises when there is an all-capitalized color hex code inside the svg tag. The gem adds a span tag around it, causing the SVG code to break. For instance, the original SVG code:
Is transformed into:
This unintended addition of the span tag within the SVG code causes issues with its rendering.
We need to find a solution to disable this span tag addition for content within svg tags.
Please address this issue to ensure the proper functioning of the gem with SVG content.
Thank you.
The text was updated successfully, but these errors were encountered: