Comments (4)
Currently the provideHover method returns MarkdownStrings. I am unsure if SVG is supported within the markdown strings, I suppose yes, pinging @mjbvz about that.
You mean you would like to detect interactions with the SVG within the rendered Markdown?
from vscode.
Currently the provideHover method returns MarkdownStrings. I am unsure if SVG is supported within the markdown strings, I suppose yes, pinging @mjbvz about that.
You mean you would like to detect interactions with the SVG within the rendered Markdown?
Yes, just like the 'markdown.showPreview' command, it will directly render the content within SVG tags, and it retains the commands within the hrefs (although they seem to be ineffective). Likewise, the markdownString in hover ultimately converts into HTML. If there are SVG tags within it, these are converted to HTML SVG tags.
For example, in PlantUML, where corresponding command links can be inserted.
This way, interactive effects can be achieved through the SVG in the hover.
from vscode.
We intentionally don't support inline svgs due to the extra attack surface they introduce. You can use svg images but these will not be interactive
from vscode.
We intentionally don't support inline svgs due to the extra attack surface they introduce. You can use svg images but these will not be interactive
@mjbvz What if the command link is restricted to the VSCode format, like command:goto_definition?[{%22pos%22:{%22character%22:6,%22line%22:10},%22shortcut%22:7873,%22u_id%22:416}]
?
from vscode.
Related Issues (20)
- Debug restart fails with a config resolver that changes the config type, after changing launch.json
- VS code web on iPad has display issues HOT 1
- move accessible view inline completion actions to new file
- Cannot add certificates to VSCode's list of trusted certificates with the .deb package
- accessible view go to symbol is not showing HOT 2
- Variables API
- Searching blocks the function view
- App Problem
- Thoughts on how to do this: HOT 1
- The Performance Issues wiki does not indicate how to capture profiling information on the remote server
- Allow custom text/filename color in explorer HOT 2
- In terminal, firefox says: Error: Failed to open Wayland display, fallback to X11. HOT 1
- Scroll behaviour in VS Code.
- Always show the copilot header buttons HOT 1
- Teclas HOT 2
- Allow multiple folders and multiple files (nested or not) HOT 1
- Private NPM Package details not loading on package.json HOT 5
- After creating a C# test project (xunit, nunit), the project will no longer build
- program c HOT 2
- GitHub Copilot - Sugestão de funcionalidade - Assistente de IA, com capacidade de observar diretamente os arquivos abertos no seu Visual Studio Code e gerar interação direta.
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 vscode.