๐ IMPROVE: Allow for opening external links in new tabs (#856) by marjuscako ยท Pull Request #857 ยท executablebooks/MyST-Parser
Add support to enable external links to open in a new tab. Expose the configuration option myst_links_external_new_tab, which if set will set all URL links to open in a new tab on the browser.
Besides that, we allow the user to set the target and rel attributes when using the extension inline_attrs (#820).
Thanks for submitting your first pull request! You are awesome! ๐ค
If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.
Welcome to the EBP community! ๐
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add support to enable external links to open in a new tab. Expose the configuration option myst_links_external_new_tab, which if set will set all URL links to open in a new tab on the browser. Besides that, we allow the user to set the target and rel attributes when using the extension inline_attrs (executablebooks#820). Closes executablebooks#820 Closes executablebooks#856 Signed-off-by: Marjus Cako <marios.cako@hpe.com>
Thanks a lot for the pointer @chrisjsewell . I updated my commit with a couple of tests for these features. Please let me know if that will suffice!
chrisjsewell
changed the title
๐ IMPROVE: External links in new tab (#856)
๐ IMPROVE: Allow for opening external links in new tabs (#856)
Codecov Report
All modified and coverable lines are covered by tests โ
Project coverage is 90.10%. Comparing base (
abcc087) to head (06a63f3).
Additional details and impacted files
@@ Coverage Diff @@ ## master #857 +/- ## ========================================== + Coverage 90.09% 90.10% +0.01% ========================================== Files 24 24 Lines 3372 3377 +5 ========================================== + Hits 3038 3043 +5 Misses 334 334
| Flag | Coverage ฮ | |
|---|---|---|
| pytests | 90.10% <100.00%> (+0.01%) |
โฌ๏ธ |
Flags with carried forward coverage won't be shown. Click here to find out more.
โ View full report in Codecov by Sentry.
๐ข Have feedback on the report? Share it here.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great cheers!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
