Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scripts/tags/exturl.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ function extURL(args, content) {
// Delete link URL and text from arguments
args = args.slice(i + 1);

// Check if the link should be open in a new window
// and collect the last text as the link title
// If any arguments exists, collect the last text as the link title,
// if not, set title as url.
if (args.length) {
var shift = args[0];
title = args.join(' ');
} else {
title = item;
}

var attrs = {
Expand All @@ -51,7 +53,6 @@ function extURL(args, content) {
title: title
};

//console.log(url);
return htmlTag('span', attrs, text.join(' '));
}

Expand Down