Skip to content

Commit

Permalink
Revert regression when trying to add anchor support for inline elements
Browse files Browse the repository at this point in the history
  • Loading branch information
erickok committed Apr 29, 2021
1 parent 8a28f93 commit 4866bef
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/html_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,10 @@ class HtmlParser extends StatelessWidget {
);
} else {
///[tree] is an inline element.
return WidgetSpan(
child: StyledText(
key: AnchorKey.of(key, tree),
textSpan: TextSpan(
style: newContext.style.generateTextStyle(),
children:
tree.children.map((tree) => parseTree(newContext, tree)).toList(),
), renderContext: context, style: newContext.style,
)
return TextSpan(
style: newContext.style.generateTextStyle(),
children:
tree.children.map((tree) => parseTree(newContext, tree)).toList(),
);
}
}
Expand Down

0 comments on commit 4866bef

Please sign in to comment.