Skip to content
New issue

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

Open Link in new tab #2453

Open
harryhanYuhao opened this issue Oct 22, 2024 · 0 comments
Open

Open Link in new tab #2453

harryhanYuhao opened this issue Oct 22, 2024 · 0 comments
Labels
C-enhancement Category: Enhancement or feature request

Comments

@harryhanYuhao
Copy link

harryhanYuhao commented Oct 22, 2024

Problem

Currently all external https links are opened in the current browser window.
To open an external link in a new tap, one have to use the verbose html tag:
<a href="http://example.com/" target="_blank">Hello, world!</a>.

As mdbook is often used for documentation, it makes sense that links to external reference are opened in a new tab, as our readers still want to refer back to the documentation.

Proposed Solution

Add a custom option to open external links in new tab by default.

Notes

No response

@harryhanYuhao harryhanYuhao added the C-enhancement Category: Enhancement or feature request label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Enhancement or feature request
Projects
None yet
Development

No branches or pull requests

1 participant