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

Update snippet importing syntax to look more markdownish #1051

Closed
brc-dd opened this issue Jul 23, 2022 · 2 comments
Closed

Update snippet importing syntax to look more markdownish #1051

brc-dd opened this issue Jul 23, 2022 · 2 comments
Labels
build Related to the build system enhancement New feature or request

Comments

@brc-dd
Copy link
Member

brc-dd commented Jul 23, 2022

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 #875 (comment)

@brc-dd brc-dd added enhancement New feature or request build Related to the build system labels Jul 23, 2022
@minenwerfer
Copy link

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.

@brc-dd
Copy link
Member Author

brc-dd commented Jul 24, 2022

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:

image

@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build Related to the build system enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants