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

Keep existing target in <a> #78

Open
pierredewilde opened this issue Oct 9, 2022 · 1 comment
Open

Keep existing target in <a> #78

pierredewilde opened this issue Oct 9, 2022 · 1 comment

Comments

@pierredewilde
Copy link

Flamethrower currently replaces existing link target:

<a href="https://astro.build" target="astro">

is replaced by

<a href="https://astro.build" target="_blank">

Existing target should be kept untouched.

anchor.target = '_blank';

should be replaced by

anchor.target = anchor.target || '_blank';
@nodsaibot
Copy link

might as well fork it as it will take awhile if you submit a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants