diff --git a/index.html b/index.html index 9ca022c..7613823 100644 --- a/index.html +++ b/index.html @@ -233,10 +233,11 @@ h1{ // Parse Markdown links in the text // credit: http://stackoverflow.com/a/9268827 - var link = d.text.match(/\[([^\]]+)\]\(([^)]+)\)/); - if (link) + var link = null; + while(link = d.text.match(/\[([^\]]+)\]\(([^)]+)\)/)) { d.text = d.text.replace(link[0], "" + link[1] + ""); - + } + return '
' + d.time.title + ' ' + d.text + '  
'; return ''; },