make inline codeblocks actually inline
This commit is contained in:
parent
b738c1d0e0
commit
bdf8fc6ce1
1 changed files with 12 additions and 10 deletions
|
|
@ -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"),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue