How to use contributes.markdown.previewScripts #2281
Unanswered
eai04191
asked this question in
Extension Development QnA
Replies: 1 comment
-
If I understand correctly, you want to add an image to the markdown chat output, correct? Here's a snippet from the data extension which shows how to add a markdown image. If this isn't answering your question, would you mind adding more details? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for how to use
contributes.markdown.previewScripts
because I want to add media to the markdown preview in the extension.The documentation doesn't explain anything other than writing the path to the js file.
https://code.visualstudio.com/api/extension-guides/markdown-extension#adding-advanced-functionality-with-scripts
The documentation links to the Markdown Preview Mermaid Support extension, which works on its own, but doesn't work if you clone the source code and launch the extension.
Details
Here's a minimal duplicate that just calls alert(). Why doesn't this work?
https://github.com/eai04191/previewscript
Beta Was this translation helpful? Give feedback.
All reactions