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

feat: support nested (injected) code blocks #138

Merged
merged 1 commit into from
Apr 3, 2022
Merged

Conversation

numToStr
Copy link
Owner

@numToStr numToStr commented Apr 1, 2022

This PR fixes commenting in nested (injected) code blocks. Like in markdown you can have multiple code blocks and those code blocks can also have injected languages for example markdown -> vue -> css/js

Before

<style>
body {
    <!-- color: red; -->
}
</style>

<script>
while (true) {
    <!-- console.log("neovim is awesome!"); -->
}
</script>

After

<style>
body {
    /* color: red; */
}
</style>

<script>
while (true) {
    // console.log("neovim is awesome!");
}
</script>

Closes #137

@numToStr numToStr merged commit 0aaea32 into master Apr 3, 2022
@numToStr numToStr deleted the feat/nested branch April 3, 2022 06:16
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

Successfully merging this pull request may close these issues.

Support comments in nested (injected) code blocks
1 participant