`shorten-links` conflicts with OctoLinker
See original GitHub issuePlease ensure:
- The bug is caused by Refined GitHub. It doesn’t happen if I disable the extension.
Description
It seems OctoLinker will linkies the code and shorten-links
kicks in, potentially making the code invalid.
Worth noting that OctoLinker also linkies code blocks in (Markdown) documents (e.g. https://github.com/oakserver/oak#application-middleware-and-context), but Refined GitHub doesn’t process those links.
Screenshot
Note the https://
prefix is stripped
Console errors
No response
Example URL
https://github.com/oakserver/oak/blob/main/deps.ts
Browser(s) used
Chrome
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Auto linkify shouldn't work in code blocks in markdown · Issue #938 ...
shorten-links conflicts with OctoLinker #4758. Closed. 1 task. Sign up for free to join this conversation on GitHub. Already have an account?
Read more >OctoLinker — Links together, what belongs together.
OctoLinker is a browser extension for GitHub, that turns language-specific statements like include require or import into links.
Read more >OctoLinker - Twitter
The OctoLinker browser extension is the easiest and best way to navigate between ... If you have been experiencing problems with OctoLinker for...
Read more >sindresorhus/refined-github (Raised $2,687.94) - Issuehunt
`shorten-links` conflicts with OctoLinker. Unfunded#4758created bykidonng. $0.00. The extensión does not allow me to upload files from the clipboard.
Read more >OctoLinker
OctoLinker – Links together, what belongs together. OctoLinker – a browser extension for GitHub Navigate through projects on GitHub.com ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve got a tentative fix for that, but I’m not sure if it’s worth the trouble since RGH is almost always faster than OctoLinker. So the fix should probably happen over there.
Plus the “double link” bug has actually existed for a while (it was mentioned in the body of #4759), but it doesn’t seem to break anything (yet).
I think it’s because both OctoLinker and RGH are linkifying that URL and then
shorten-links
will shorten OctoLinker’s link. It just depends on who gets there first:.octolinker-link
fromshorten-links
.octolinker-link
fromlinkify-code
code
fromshorten-links
… we did this before and we probably lost it in some optimization. The complex part is that some “code” block has comments in it which can have furthercode
. Honestly I think we need tests for this.