diff --git a/lib/widgets/html/html.dart b/lib/widgets/html/html.dart index 4393c61..7c99471 100644 --- a/lib/widgets/html/html.dart +++ b/lib/widgets/html/html.dart @@ -51,16 +51,18 @@ class const Html( element.text, lang: element.className.replaceAll("language-", ""), ) - : ClipRRect( - borderRadius: .all(.circular(4)), - child: Container( - padding: .all(8), - color: Theme.of(context) - .colorScheme - .surfaceContainerHighest, - child: SelectableText( - element.text, - style: .new(fontFamily: "bundled-mono"), + : InlineCustomWidget( + child: ClipRRect( + borderRadius: .all(.circular(4)), + child: Container( + padding: .all(8), + color: Theme.of(context) + .colorScheme + .surfaceContainerHighest, + child: SelectableText( + element.text, + style: .new(fontFamily: "bundled-mono"), + ), ), ), ),