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

Unified Diff: lib/dartdoc/markdown.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
Index: lib/dartdoc/markdown.dart
diff --git a/lib/dartdoc/markdown.dart b/lib/dartdoc/markdown.dart
index b0a177cc483583c39e548cf9317960512bdb0791..02c099f5a7ba1e3ac0fe647b843d5ea01bceaf68 100644
--- a/lib/dartdoc/markdown.dart
+++ b/lib/dartdoc/markdown.dart
@@ -57,8 +57,8 @@ class Document {
final match = pattern.firstMatch(lines[i]);
if (match != null) {
// Parse the link.
- final id = match[1];
- final url = match[2];
+ var id = match[1];
+ var url = match[2];
var title = match[3];
if (title == '') {
@@ -69,6 +69,9 @@ class Document {
title = title.substring(1, title.length - 1);
}
+ // References are case-insensitive.
+ id = id.toLowerCase();
+
refLinks[id] = new Link(id, url, title);
// Remove it from the output. We replace it with a blank line which will
« no previous file with comments | « lib/dartdoc/inline_parser.dart ('k') | lib/uri/uri.dart » ('j') | lib/uri/uri.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698