vitepress
vitepress copied to clipboard
Update snippet importing syntax to look more markdownish
The syntax from markdown-it-vuepress-code-snippet-enhanced looks more markdown-like and extendable (I saw you have noticed that @brc-dd ), so I chose to implement it in vuepress-next (not as powerful as that plugin though).
Anyway, the <<< syntax has being always marked as beta in VuePress v1 (link), so we could still consider changing it.
Originally posted by @meteorlxy in https://github.com/vuejs/vitepress/issues/875#issuecomment-1178450949
I totally agree with you. Neovim highlights the "<<<" as syntax error for some reason, moreover specifying a VSCode region alongside with a language (e.g. @/source/component.vue#props{typescript}) doesn't seem to work.
moreover specifying a VSCode region alongside with a language (e.g. @/source/component.vue#props{typescript}) doesn't seem to work.
That language thing was added recently, so its not in the latest release yet. It works fine though:
