fireship-io/flamethrower

Keep existing target in <a>

pierredewilde opened this issue · 1 comments

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';

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