Skip to content

Fix spoiler escaped characters #3181

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

bryewalks
Copy link
Contributor

Description

Spoiler titles with characters like " & < > were being rendered as &quot; &amp; &lt; &gt;

This was caused by double escaping:

  • First by escapeHtml
  • Then again by markdown-it

Updated to pass raw markdown directly to mdToHtmlInline(), allowing markdown-it to handle escaping.

Fixes #3167

Screenshots

Before

2025-06-08-025221_hyprshot

After

2025-06-08-025155_hyprshot

@SleeplessOne1917 SleeplessOne1917 merged commit bf9a434 into LemmyNet:main Jun 9, 2025
1 check passed
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.

Quotation marks and other symbols are incorrectly rendered
3 participants