Skip to content

Commit

Permalink
Fix hyperlink iOS still show full link
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Sep 23, 2024
1 parent c2ce3ac commit 53fb08b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class SanitizeHyperLinkTagInHtmlTransformer extends DomTransformer {
}) async {
final elements = document.querySelectorAll('a');
await Future.wait(elements.map((element) async {
_addToolTipWhenHoverLink(element);
if (useTooltip) {
_addToolTipWhenHoverLink(element);
}
_addBlankForTargetProperty(element);
_addNoReferrerForRelProperty(element);
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class TransformConfiguration {
const RemoveScriptTransformer(),
const BlockQuotedTransformer(),
const BlockCodeTransformer(),
SanitizeHyperLinkTagInHtmlTransformer(),
SanitizeHyperLinkTagInHtmlTransformer(useTooltip: PlatformInfo.isWeb),
const ImageTransformer(),
const AddLazyLoadingForBackgroundImageTransformer(),
const RemoveCollapsedSignatureButtonTransformer(),
Expand Down

0 comments on commit 53fb08b

Please sign in to comment.