Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Newlines not correctly handled in product card titles

Open cathysarisky opened this issue 1 year ago • 1 comments

Issue Summary

If I press shift-enter while creating a title for a product card, then each line of the product title ends up in a separate span. I can publish and it displays without issues. (This is handy, because I might want to change how those spans are styled or laid out.)

Everything is OK until I open the post a second time in the editor. At that point, the title is consolidated into a single span.

Maybe titles shouldn't be breakable into multiple spans, but it'd be nice if the behavior (whatever it is) were consistent, and opening a published post didn't reformat it.

Steps to Reproduce

Create a product card. Give it a title that spans multiple lines. Publish. Observe the output of the post HTML, with the title in multiple spans. Open the post in the editor again. (Line breaks will be gone.) Save, without making other changes. Observe the output of the HTML, with the title now in a single span.

Ghost Version

5.81.1

Node.js Version

18

How did you install Ghost?

WSL2/using Ghost-cli

Database type

MySQL 8

Browser & OS version

No response

Relevant log / error output

No response

Code of Conduct

  • [X] I agree to be friendly and polite to people in this repository

cathysarisky avatar Apr 16 '24 17:04 cathysarisky

can you assign me this

nairvismaya avatar Aug 05 '24 10:08 nairvismaya