fix: Add missing <s> html tag to render

pull/1666/head
Krille 5 months ago
parent 7a47a6a595
commit a91646d2ba
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -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…
Cancel
Save