Skip to content

[Feature]: Support @[code](../foo.js) for code blocks #2068

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

Open
buyfakett opened this issue Apr 15, 2025 · 1 comment
Open

[Feature]: Support @[code](../foo.js) for code blocks #2068

buyfakett opened this issue Apr 15, 2025 · 1 comment
Labels

Comments

@buyfakett
Copy link

What problem does this feature solve?

在markdown中增加渲染@code
这个功能可以把一些代码和脚本分开存放,可以让markdown更清爽

What does the proposed API look like?

https://v2.vuepress.vuejs.org/zh/guide/markdown.html#%E5%AF%BC%E5%85%A5%E4%BB%A3%E7%A0%81%E5%9D%97

@Timeless0911 Timeless0911 changed the title [Feature]: 增加渲染@[code](../foo.js) [Feature]: Support @[code](../foo.js) for code blocks Apr 15, 2025
@SoonIter
Copy link
Member

Image

it is not the standard of markdown standard such as common-mark, so this syntax should be customized by users via remarkPlugin

这个功能可以把一些代码和脚本分开存放,可以让markdown更清爽
This feature can separate some codes and scripts for storage, making markdown cleaner.

I'm implementing the @rspress/plugin-llms. Separating code and scripts for storage can result in some information loss that cannot be understood by llm. This is not clearer; instead, it makes markdown more difficult to understand. 🤔

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

No branches or pull requests

3 participants