-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Callout card changes in the new editor #17215
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
Labels
bug
[triage] something behaving unexpectedly
Comments
The same thing is happening for the code block. Except they are converted into text nodes before rendering for the new editor |
ronaldlangeveld
added a commit
to TryGhost/Koenig
that referenced
this issue
Jul 11, 2023
refs TryGhost/Ghost#17215 - Fixes an issue that caused some templates to render the card incorrectly. - Refactored the renderCalloutNode function to parse the calloutText into a DOM tree using jsdom - Created a cleanDOM helper function to traverse the DOM tree and remove unwanted HTML tags - Retained only 'A', 'STRONG', and 'EM' tags in the HTML string to bring it in line with how mobiledoc rendered HTML.
ronaldlangeveld
added a commit
to TryGhost/Koenig
that referenced
this issue
Jul 11, 2023
refs TryGhost/Ghost#17215 - Fixes an issue that caused some templates to render the card incorrectly. - Refactored the renderCalloutNode function to parse the calloutText into a DOM tree using jsdom - Created a cleanDOM helper function to traverse the DOM tree and remove unwanted HTML tags - Retained only 'A', 'STRONG', and 'EM' tags in the HTML string to bring it in line with how mobiledoc rendered HTML.
kevinansfield
pushed a commit
that referenced
this issue
May 27, 2025
* 🐛 Fixed callout card render format closes #17215 - Fixes an issue that caused some templates to render the card incorrectly. - Refactored the renderCalloutNode function to parse the calloutText into a DOM tree using jsdom - Created a cleanDOM helper function to traverse the DOM tree and remove unwanted HTML tags - Retained only 'A', 'STRONG', and 'EM' tags in the HTML string to bring it in line with how mobiledoc rendered HTML.
kevinansfield
pushed a commit
that referenced
this issue
May 28, 2025
* 🐛 Fixed callout card render format closes #17215 - Fixes an issue that caused some templates to render the card incorrectly. - Refactored the renderCalloutNode function to parse the calloutText into a DOM tree using jsdom - Created a cleanDOM helper function to traverse the DOM tree and remove unwanted HTML tags - Retained only 'A', 'STRONG', and 'EM' tags in the HTML string to bring it in line with how mobiledoc rendered HTML.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Summary
I noticed that the Callout card in the new editor now has a
<p>
and<span>
paragraph added. Is this a deliberate change, because usually paragraphs have specific formatting, so it spoils the look of this card in themes.In addition, sometimes the
dir="ltr"
parameter is added, sometimes not :)New editor:
Old editor:
Steps to Reproduce
Add Callout card in the new editor and check code in browser.
Ghost Version
5.53.4
Node.js Version
v16.13.0
How did you install Ghost?
localhost
Database type
SQLite3
Browser & OS version
All
Relevant log / error output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: