fix: Add missing <s> html tag to render
This commit is contained in:
parent
7a47a6a595
commit
a91646d2ba
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ class HtmlMessage extends StatelessWidget {
|
|||
static const Set<String> allowedHtmlTags = {
|
||||
'font',
|
||||
'del',
|
||||
's',
|
||||
'h1',
|
||||
'h2',
|
||||
'h3',
|
||||
|
|
@ -412,6 +413,7 @@ class HtmlMessage extends StatelessWidget {
|
|||
'strong' => const TextStyle(fontWeight: FontWeight.bold),
|
||||
'em' || 'i' => const TextStyle(fontStyle: FontStyle.italic),
|
||||
'del' ||
|
||||
's' ||
|
||||
'strikethrough' =>
|
||||
const TextStyle(decoration: TextDecoration.lineThrough),
|
||||
'u' => const TextStyle(decoration: TextDecoration.underline),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue