Skip to content

Commit

Permalink
TW-1135: Revert linebreaks hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE committed Dec 16, 2023
1 parent e5e67b2 commit dd7dcf8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/src/utils/markdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,6 @@ class MentionSyntax extends InlineSyntax {
}
}

class MultipleLinebreaksSyntax extends InlineSyntax {
MultipleLinebreaksSyntax() : super(r'\n{2,}');

@override
bool onMatch(InlineParser parser, Match match) {
parser.addNode(Element.empty('br'));
return true;
}
}

String markdown(
String text, {
Map<String, Map<String, String>> Function()? getEmotePacks,
Expand All @@ -228,7 +218,6 @@ String markdown(
],
inlineSyntaxes: [
StrikethroughSyntax(),
MultipleLinebreaksSyntax(),
SpoilerSyntax(),
EmoteSyntax(getEmotePacks),
PillSyntax(),
Expand Down

0 comments on commit dd7dcf8

Please sign in to comment.