Skip to content

Commit 4866bef

Browse files
committed
Revert regression when trying to add anchor support for inline elements
1 parent 8a28f93 commit 4866bef

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

lib/html_parser.dart

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -435,15 +435,10 @@ class HtmlParser extends StatelessWidget {
435435
);
436436
} else {
437437
///[tree] is an inline element.
438-
return WidgetSpan(
439-
child: StyledText(
440-
key: AnchorKey.of(key, tree),
441-
textSpan: TextSpan(
442-
style: newContext.style.generateTextStyle(),
443-
children:
444-
tree.children.map((tree) => parseTree(newContext, tree)).toList(),
445-
), renderContext: context, style: newContext.style,
446-
)
438+
return TextSpan(
439+
style: newContext.style.generateTextStyle(),
440+
children:
441+
tree.children.map((tree) => parseTree(newContext, tree)).toList(),
447442
);
448443
}
449444
}

0 commit comments

Comments
 (0)