Skip to content

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