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

Unified Diff: lib/dartdoc/inline_parser.dart

Issue 10073001: Fix HTTP links in URI docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « no previous file | lib/dartdoc/markdown.dart » ('j') | lib/uri/uri.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dartdoc/inline_parser.dart
diff --git a/lib/dartdoc/inline_parser.dart b/lib/dartdoc/inline_parser.dart
index 69c63edc0eff64441094a64590c6a2d8002bf8b8..dfefc2ae82af78945076b280516cc54a34bac132 100644
--- a/lib/dartdoc/inline_parser.dart
+++ b/lib/dartdoc/inline_parser.dart
@@ -288,6 +288,9 @@ class LinkSyntax extends TagSyntax {
id = parser.source.substring(state.startPos + 1, parser.pos);
}
+ // References are case-insensitive.
+ id = id.toLowerCase();
+
// Look up the link.
final link = parser.document.refLinks[id];
// If it's an unknown link just emit plaintext.
« no previous file with comments | « no previous file | lib/dartdoc/markdown.dart » ('j') | lib/uri/uri.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698