Revert "DEV: Replace Rinku native gem with PrettyText" (#31692)

Reverts discourse/discourse#31557

This is causing excessive spacing due to the addition of empty `<p>`
tags. Revert first while we fix that.
This commit is contained in:
Ted Johansson
2025-03-07 10:01:22 +08:00
committed by GitHub
parent e77e5bd3cc
commit e87bfad23b
4 changed files with 5 additions and 51 deletions

View File

@ -26,8 +26,7 @@ class TwitterApi
end
end
text = link_hashtags_in link_handles_in text
result =
PrettyText.cook(text, features_override: []).delete_prefix("<p>").delete_suffix("</p>")
result = Rinku.auto_link(text, :all, 'target="_blank"').to_s
if tweet[:includes] && media = tweet[:includes][:media]
media.each do |m|