Skip to content
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

支持动态加载 markdown文件的导出 <!--@include: ./parts/${name}.md--> #4570

Open
4 tasks done
kkkkh opened this issue Feb 18, 2025 · 1 comment
Open
4 tasks done

Comments

@kkkkh
Copy link

kkkkh commented Feb 18, 2025

Is your feature request related to a problem? Please describe.

目前只能静态加载单个文件资源

Describe the solution you'd like

支持动态加载 markdown文件的导出

一个文件列表,可以支持for循环动态加载markdown文件的加载

Describe alternatives you've considered

No response

Additional context

No response

Validations

@Zhengqbbb
Copy link
Contributor

Zhengqbbb commented Feb 18, 2025

https://vitepress.dev/guide/routing#dynamic-routes
Rename xxx.md => /data/xxx.mdx Read file as data and parse => <!-- @content -->
e.g: https://x-cmd.com/blog/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants