Skip to content

Commit

Permalink
Fix HTML entities being displayed in messages
Browse files Browse the repository at this point in the history
Initially reported in element-hq#6445. Fixes element-hq#6445.
This was a regression from element-hq#6357.

The fix is to enable Markwon's HTML entities processor.
  • Loading branch information
cloudrac3r committed Jul 3, 2022
1 parent 93b7e10 commit 84bb11c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/6442.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix HTML entities being displayed in messages
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ class EventHtmlRenderer @Inject constructor(
}
.usePlugin(
MarkwonInlineParserPlugin.create(
MarkwonInlineParser.factoryBuilderNoDefaults().addInlineProcessor(HtmlInlineProcessor())
/* Configuring the Markwon inline formatting processor.
* Default settings are all Markdown features. Turn those off, only using the
* inline HTML processor and HTML entities processor.
*/
MarkwonInlineParser.factoryBuilderNoDefaults()
.addInlineProcessor(HtmlInlineProcessor()) // use inline HTML processor
.addInlineProcessor(EntityInlineProcessor()) // use HTML entities processor
)
)
.usePlugin(object : AbstractMarkwonPlugin() {
Expand Down

0 comments on commit 84bb11c

Please sign in to comment.