From 91f10f9b40af86b36645ea27f59ce277bf2d3e4e Mon Sep 17 00:00:00 2001 From: Nuno Santos Date: Tue, 3 Dec 2013 20:12:56 +0100 Subject: [PATCH] Use ? instead of * to match tooltips in Markdown links. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d25c49a..6d66b89 100644 --- a/index.html +++ b/index.html @@ -234,7 +234,7 @@ h1{ // Parse Markdown links in the text // credit: http://stackoverflow.com/a/9268827 var link = null; - while(link = d.text.match(/\[([^\]]+)\]\(([^)"]+)(?: \"([^\"]+)\")*\)/)) { + while(link = d.text.match(/\[([^\]]+)\]\(([^)"]+)(?: \"([^\"]+)\")?\)/)) { var link_attr = ""; if (link[3] !== undefined) { link_attr = " title='" + link[3] + "'";