chore: Follow up html tag rendering
This commit is contained in:
parent
3b181291cc
commit
86a73f9909
1 changed files with 4 additions and 2 deletions
|
|
@ -86,10 +86,10 @@ class HtmlMessage extends StatelessWidget {
|
|||
'rt',
|
||||
'html',
|
||||
'body',
|
||||
// Workaround for https://github.com/krille-chan/fluffychat/issues/507
|
||||
'tg-forward',
|
||||
};
|
||||
|
||||
static const Set<String> ignoredHtmlTags = {'mx-reply'};
|
||||
|
||||
/// We add line breaks before these tags:
|
||||
static const Set<String> blockHtmlTags = {
|
||||
'p',
|
||||
|
|
@ -170,6 +170,8 @@ class HtmlMessage extends StatelessWidget {
|
|||
);
|
||||
}
|
||||
|
||||
if (ignoredHtmlTags.contains(node.localName)) return const TextSpan();
|
||||
|
||||
switch (node.localName) {
|
||||
case 'br':
|
||||
return const TextSpan(text: '\n');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue