We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want all links are opened by a new window, the change is simple:
writeAnchorTag
showdown.subParser
// ... var target = " target=\"_blank\""; target = target.replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback); var result = '<a href="' + url + '"' + target; // ...
This is for normal link ([text](url) form).
[text](url)
replaceLink
// ... var target = " target=\"_blank\""; target = target.replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback); return '<a href="' + link + '"' + target + '>' + lnkTxt + '</a>' + append;
This one for simple link.
Of course, it would be nice if there is an option to control it (I'm surprised there isn't already one). :-)
The text was updated successfully, but these errors were encountered:
Duplicate of #337 #249 #247 #222
Sorry, something went wrong.
Since this is a feature that's been requested over and over again, I will add this as a feature
Should be implemented
I'm also looking for this fix - how can I use this new fix? Do I have to target a certain version? Sorry if this is a stupid question.
Use develop branch
50235d6
tivie
No branches or pull requests
I want all links are opened by a new window, the change is simple:
writeAnchorTag
ofshowdown.subParser
:This is for normal link (
[text](url)
form).replaceLink
:This one for simple link.
Of course, it would be nice if there is an option to control it (I'm surprised there isn't already one).
:-)
The text was updated successfully, but these errors were encountered: