mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Fix HTML entities being displayed in messages
Initially reported in #6445. Fixes #6445. This was a regression from #6357. The fix is to enable Markwon's HTML entities processor.
This commit is contained in:
parent
93b7e1094c
commit
84bb11c1bf
2 changed files with 8 additions and 1 deletions
1
changelog.d/6442.bugfix
Normal file
1
changelog.d/6442.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix HTML entities being displayed in messages
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue