-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Whitelisting domains? #5
Labels
👀 no/external
This makes more sense somewhere else
Comments
Hmm, interesting! You could also create a plugin that “relativises” URLs based on a given domain! Something like this plugin, but rewriting the URLs based on a |
@wooorm Good idea! Until I publish a repo, here's what I ended up using (for anyone else reading this later; I put this in before
Example regex: |
zslabs
added a commit
to zslabs/remark
that referenced
this issue
Oct 26, 2018
Relevant issue remarkjs/remark-external-links#5 (comment) explaining purpose.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋 Thanks for creating this! I work with a team that creates content on a fairly regular basis; and unfortunately it'd be easier said then done to tell them to use just relative links for their internal links, but most do use a fully qualified domain; which at the moment - the regex sees as an external one. Any opinion on if you think that'd be a good feature to add?
The text was updated successfully, but these errors were encountered: