diff --git a/lib/parser/html_utils.dart b/lib/parser/html_utils.dart
index b902376..a80d2e5 100644
--- a/lib/parser/html_utils.dart
+++ b/lib/parser/html_utils.dart
@@ -1,4 +1,5 @@
import 'package:flutter_quill_delta_from_html/parser/indent_parser.dart';
+
import 'colors.dart';
import 'font_size_parser.dart';
import 'line_height_parser.dart';
@@ -110,6 +111,23 @@ Map parseStyleAttribute(String style) {
//ignore error (i.e. 'line-height: inherit;')
}
break;
+ case 'font-style':
+ if (value.contains('italic')) {
+ attributes['italic'] = true;
+ }
+ break;
+ case 'text-decoration':
+ if (value.contains('underline')) {
+ attributes['underline'] = true;
+ }
+ if (value.contains('line-through')) {
+ attributes['strike'] = true;
+ }
+ break;
+ case 'font-weight':
+ if (value == 'bold') {
+ attributes['bold'] = true;
+ }
default:
break;
}