Use ? instead of * to match tooltips in Markdown links.
This commit is contained in:
parent
66197d54ee
commit
91f10f9b40
@ -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] + "'";
|
||||
|
Loading…
Reference in New Issue
Block a user