chore: clean up

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-20 11:21:19 +08:00
parent ed60c274fc
commit 538494b7ec
90 changed files with 495 additions and 1816 deletions

View File

@@ -36,15 +36,7 @@ Widget htmlRender({
if (isMall) {
return const SizedBox.shrink();
}
// bool inTable =
// extensionContext.element!.previousElementSibling == null ||
// extensionContext.element!.nextElementSibling == null;
// imgUrl = Utils().imageUrl(imgUrl!);
// return CachedNetworkImage(
// imageUrl: imgUrl,
// width: isEmote ? 22 : null,
// height: isEmote ? 22 : null,
// );
String? clazz = attributes['class'];
String? height = RegExp(r'max-height:(\d+)px')
.firstMatch('${attributes['style']}')
@@ -89,7 +81,6 @@ Widget htmlRender({
lineHeight: LineHeight.percent(160),
letterSpacing: 0.3,
),
// 'br': Style(margin: Margins.zero, padding: HtmlPaddings.zero),
'body': Style(margin: Margins.zero, padding: HtmlPaddings.zero),
'a': Style(
color: Theme.of(context).colorScheme.primary,
@@ -100,7 +91,6 @@ Widget htmlRender({
),
'p': Style(
margin: Margins.only(bottom: 4),
// margin: Margins.zero,
),
'span': Style(
fontSize: FontSize.large,
@@ -128,7 +118,6 @@ Widget htmlRender({
'figcaption': Style(
fontSize: FontSize.large,
textAlign: TextAlign.center,
// margin: Margins.only(top: 4),
),
'strong': Style(fontWeight: FontWeight.bold),
'figure': Style(