Skip to content

fix: Render formatted body in reply and editor#2840

Open
wyattwas wants to merge 2 commits intocinnyapp:devfrom
wyattwas:spoiler-in-reply
Open

fix: Render formatted body in reply and editor#2840
wyattwas wants to merge 2 commits intocinnyapp:devfrom
wyattwas:spoiler-in-reply

Conversation

@wyattwas
Copy link
Copy Markdown

@wyattwas wyattwas commented Mar 24, 2026

This PR fixes issue #1569 by using the formatted_body of the message being replied to. It passes that to the HTMLReactParser. This approach not only renders spoilers, but all markdown/HTML that is contained in the formatted_body. It removes the <br/> tag, in order to show the entire message in one line.
I am definitely open for suggestion on how to improve this.

Changes:

  • use the formatted_body of the message being replied to, if that message is formatted
  • also use the formatted_body in the editor

Commits:

  • render formatted body in reply and editor

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@wyattwas
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

ajbura added a commit to cinnyapp/cla that referenced this pull request Mar 24, 2026
@wyattwas wyattwas changed the title Render formatted body in reply and editor fix: Render formatted body in reply and editor Mar 24, 2026
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

Successfully merging this pull request may close these issues.

1 participant