Comments (5)
It looks like f1ec882 adds ?plain=1
to every GitHub URL, even those that default to plain rendering.
The downside is that it looks like ?plain=1
suppresses embedded code snippets in GitHub comments. See the following URLs and how they render:
https://github.com/reduckted/vscode-gitweblinks/blob/1384c1e5ee29d3b57ae3fbb31fd9140f3e7fadcc/shared/handlers/bitbucket-server.json#L6-L7
https://github.com/reduckted/vscode-gitweblinks/blob/1384c1e5ee29d3b57ae3fbb31fd9140f3e7fadcc/shared/handlers/bitbucket-server.json?plain=1#L6-L7
https://github.com/reduckted/vscode-gitweblinks/blob/1384c1e5ee29d3b57ae3fbb31fd9140f3e7fadcc/README.md?plain=1#L14-L16
IMO this is a GitHub bug. ?plain=1
should not suppress embedded code snippets (I emailed support). But since it does, I wonder if ?plain=1
should only be added to files ending with .md
or .markdown
?
from gitweblinks.
@reduckted the plain is a pain because I need to manually remove it to get the previews as @dhimmel shows. Any chance this could be made configurable, or @dhimmel's suggestion implemented?
from gitweblinks.
Thanks for the info. I've added this v2.5.1 which is available in the marketplace now.
from gitweblinks.
Thanks! Noting f1ec882 as the relevant commit.
from gitweblinks.
I've improved this in 4b1b35e. The ?plain=1
is only added to markdown files (.md
or .markdown
).
Version 2.5.3 should be available on the marketplace shortly.
from gitweblinks.
Related Issues (20)
- New link format: branch name only (no commit) HOT 2
- Quick link opening HOT 2
- Broken extension: Missing link in right-click menu; Cmd+Shift+P produces workspace error. HOT 11
- Doesn't work with Git worktrees HOT 1
- Incorrect link format for remote URLs containing username HOT 3
- Not tracked files in v2.1.0. HOT 1
- Feature Request: link and selected text to Markdown format HOT 3
- Support for gitea server or custom links? HOT 3
- Links to multi-line selections on GitHub include an extra line HOT 2
- Special characters in file name should be encoded HOT 2
- Fails to copy link from non-root directory HOT 1
- Feature request: Short SHA Links HOT 2
- Change default remote HOT 3
- request supports for workspace settings HOT 2
- [Feature Suggestion] - Keyboard Shortcut for `Copy Link to Selection` HOT 1
- [Tests] lots of tests fail (104) comparing `master` to `main` HOT 1
- Regression: broken "find next" command in MacOS because of keyboard shortcut hijacking (CMD + G) HOT 7
- Server URI is not a valid URI HOT 7
- Built-in WebLink support for VS Code now exists
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitweblinks.