Skip to content

Commit

Permalink
fix: Add missing <s> html tag to render
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Mar 2, 2025
1 parent 7a47a6a commit a91646d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pages/chat/events/html_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class HtmlMessage extends StatelessWidget {
static const Set<String> allowedHtmlTags = {
'font',
'del',
's',
'h1',
'h2',
'h3',
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit a91646d

Please sign in to comment.