Remove redundant LinkSyntax; remove erroneous comment (dart-lang/markdown#295)
The LinkSyntax is added, per the comment within _defaultSyntaxes, in the
constructor, so I believe it was not intended to be in the default
syntaxes list without the right resolver set.
The comment within _htmlSyntaxes didn't make sense to me, so I believe
it to be an error (copy and paste?).
Both changes are no-ops, just clean ups I noticed while looking through
the code. Hopefully I have not misunderstood.
Thanks!
diff --git a/pkgs/markdown/lib/src/inline_parser.dart b/pkgs/markdown/lib/src/inline_parser.dart
index e416a9b..78d945d 100644
--- a/pkgs/markdown/lib/src/inline_parser.dart
+++ b/pkgs/markdown/lib/src/inline_parser.dart
@@ -17,7 +17,6 @@
EmailAutolinkSyntax(),
AutolinkSyntax(),
LineBreakSyntax(),
- LinkSyntax(),
ImageSyntax(),
// Allow any punctuation to be escaped.
EscapeSyntax(),
@@ -44,7 +43,6 @@
TextSyntax(r'<', sub: '<', startCharacter: $lt),
// Encode ">".
TextSyntax(r'>', sub: '>', startCharacter: $gt),
- // We will add the LinkSyntax once we know about the specific link resolver.
]);
/// The string of Markdown being parsed.