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've made it so that if you start a link with \/, it opens it in a new tab. I've done this by adding the lines
if link[:2] == '\\/': link = link[2:] newtab = True else: newtab = False
and then the lines
if not newtab: b = b[:m.start()] + r'<a href=\"%s\">%s<\/a>' % (link, linkname) + b[m.end():] else: b = b[:m.start()] + r'<a rel=\"noopener noreferrer\" target=\"_blank\" href=\"%s\">%s<\/a>' % (link, linkname) + b[m.end():]
to the replacelinks function which seems to work well.
replacelinks
What do you think about adding this to master? What would be a good way to signify new tab?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've made it so that if you start a link with \/, it opens it in a new tab. I've done this by adding the lines
and then the lines
to the
replacelinks
function which seems to work well.What do you think about adding this to master? What would be a good way to signify new tab?
The text was updated successfully, but these errors were encountered: