-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md file can't use import external resources #922
Comments
"vitepress": "0.22.4" |
What is |
:::demo Has it been abandoned? I want to run VUE code in MD file |
I don't think there was any such thing in VitePress (I guess you're confused between VitePress and VuePress, in VuePress there are some plugins using which you can show demos). In VitePress, you can use Vue directly in markdown like this: # Hey there
<right-outlined />
<script setup lang="ts">
import { RightOutlined } from '@vicons/antd'
</script> |
That theme is not official. You can create issues on its repo (https://github.com/xinlei3166/vitepress-theme-demoblock) if something isn't working. But this clearly isn't an issue with VitePress. |
OK I got it thank you very much |
I had wrote a simple component that did that demo thing for an issue here. But I'm unable to find that. As for the element plus, you can do this: #603 (comment). If you can write a demo plugin for yourself then you don't need that theme at all IG (also it isn't updated for v1-alpha I believe). I am closing this for now. If you need some help then create a discussion or ask on Vue's discord (https://chat.vuejs.org/). |
Describe the bug
md file can't use import @vicons/antd
My Code
:::demo
:::
Browser Error
Reproduction
md file use import
Expected behavior
md file can use import node_modules package
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: