Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1364)

Unified Diff: third_party/pkg/markdown/lib/src/inline_parser.dart

Issue 218783002: Updated markdown library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated pkg/pkg.status Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/pkg.status ('k') | third_party/pkg/markdown/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/markdown/lib/src/inline_parser.dart
diff --git a/third_party/pkg/markdown/lib/src/inline_parser.dart b/third_party/pkg/markdown/lib/src/inline_parser.dart
index 6772c8416d95a16ca556b12ea2fc271223f56c4e..b46f5f956da1e4584c6894655e9d4e4399da5887 100644
--- a/third_party/pkg/markdown/lib/src/inline_parser.dart
+++ b/third_party/pkg/markdown/lib/src/inline_parser.dart
@@ -274,7 +274,7 @@ class LinkSyntax extends TagSyntax {
LinkSyntax({this.linkResolver, String pattern: r'\['})
: super(pattern, end: linkPattern);
- Node createNode(InlineParser parser, Match match, TagState state) {
+ Element createNode(InlineParser parser, Match match, TagState state) {
// If we didn't match refLink or inlineLink, then it means there was
// nothing after the first square bracket, so it isn't a normal markdown
// link at all. Instead, we allow users of the library to specify a special
@@ -334,7 +334,7 @@ class LinkSyntax extends TagSyntax {
}
bool onMatchEnd(InlineParser parser, Match match, TagState state) {
- Node node = createNode(parser, match, state);
+ Element node = createNode(parser, match, state);
if (node == null) return false;
parser.addNode(node);
return true;
@@ -348,8 +348,8 @@ class ImageLinkSyntax extends LinkSyntax {
ImageLinkSyntax({this.linkResolver})
: super(pattern: r'!\[');
- Node createNode(InlineParser parser, Match match, TagState state) {
- Node node = super.createNode(parser, match, state);
+ Element createNode(InlineParser parser, Match match, TagState state) {
+ Element node = super.createNode(parser, match, state);
if (node == null) return null;
final Element imageElement = new Element.withTag("img")
« no previous file with comments | « pkg/pkg.status ('k') | third_party/pkg/markdown/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698