Skip to content

Links from instructions open in a new window#1388

Merged
outoftime merged 1 commit intopopcodeorg:masterfrom
outoftime:target-blank-from-instructions
Mar 13, 2018
Merged

Links from instructions open in a new window#1388
outoftime merged 1 commit intopopcodeorg:masterfrom
outoftime:target-blank-from-instructions

Conversation

@outoftime
Copy link
Copy Markdown
Contributor

Runs instructions markdown through remark-external-links, which by default adds a target="_blank" and rel="noopener noreferrer" to anchor tags.

At this point this is hard-coded into the toReact method used here, with no option to disable it—could always make it optional in the future, but it’s hard to imagine a situation in which we wouldn’t want links from processed Markdown to open in a new window.

Runs instructions markdown through `remark-external-links`, which by
default adds a `target="_blank"` and `rel="noopener noreferrer"` to
anchor tags.

At this point this is hard-coded into the `toReact` method used here,
with no option to disable it—could always make it optional in the
future, but it’s hard to imagine a situation in which we wouldn’t want
links from processed Markdown to open in a new window.
@outoftime outoftime merged commit 6c11ec4 into popcodeorg:master Mar 13, 2018
@outoftime outoftime deleted the target-blank-from-instructions branch March 13, 2018 00:08
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

Successfully merging this pull request may close these issues.

1 participant