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 = {
|
static const Set<String> allowedHtmlTags = {
|
||||||
'font',
|
'font',
|
||||||
'del',
|
'del',
|
||||||
|
's',
|
||||||
'h1',
|
'h1',
|
||||||
'h2',
|
'h2',
|
||||||
'h3',
|
'h3',
|
||||||
|
|
@ -412,6 +413,7 @@ class HtmlMessage extends StatelessWidget {
|
||||||
'strong' => const TextStyle(fontWeight: FontWeight.bold),
|
'strong' => const TextStyle(fontWeight: FontWeight.bold),
|
||||||
'em' || 'i' => const TextStyle(fontStyle: FontStyle.italic),
|
'em' || 'i' => const TextStyle(fontStyle: FontStyle.italic),
|
||||||
'del' ||
|
'del' ||
|
||||||
|
's' ||
|
||||||
'strikethrough' =>
|
'strikethrough' =>
|
||||||
const TextStyle(decoration: TextDecoration.lineThrough),
|
const TextStyle(decoration: TextDecoration.lineThrough),
|
||||||
'u' => const TextStyle(decoration: TextDecoration.underline),
|
'u' => const TextStyle(decoration: TextDecoration.underline),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue