Enforce root-relative URL syntax and open links in new tabs - #142
Enforce root-relative URL syntax and open links in new tabs#142httphypixelnet wants to merge 5 commits into
Conversation
|
🌐 Preview URL: https://pr-142.frcsoftware.pages.dev |
|
I misinterpreted the purpose of the absolute links |
The current lint/build tooling doesn't fail on |
It does, I think the reason that doesn't work is because src/content/etc. is the root path. Haven't tested with that combination though, so can't confirm. Regardless, it doesn't cover some of the https links you're changing so that's a good fix. |
|
Strange, you want me to investigate making the plugin work properly? |
Description
Added
rehype-external-links.ts: Rehype plugin to ensure external links open in a new tabremark-force-root-relative.mjs: Remark plugin to enforce root-relative URLs on internal linksCloses #37
Meta
Merge checklist: