klembot / chapbook

A simple, readable story format for Twine 2.
https://klembot.github.io/chapbook
MIT License
80 stars 25 forks source link

Open links in new tab #188

Open parkingTurkeys opened 6 months ago

parkingTurkeys commented 6 months ago

Is your feature request related to a problem? Please describe. I want to add some links to external sites (ex. Wikipedia), however i want them to open in a new tab so it doesn't annoy people.

Describe the solution you'd like To be able to set a link to open in a new tab.

Describe alternatives you've considered It wouldn't be automatic but you would add it to a link (for example: openInNewTab: true)

greyelf commented 6 months ago

@parkingTurkeys

You can achieve the outcome you want using the HTML <a> Anchor element, that has a target attribute value of _blank.

Welcome to the library.
Would you like to [[read a book]] or to use <a href="https://google.com/" target="_blank">Google</a> to search for some information?