I’m using this code with snippetCompletion()
:
autocompletion({
activateOnTyping: true,
optionClass,
override: [
context => {
const matchBefore = context.matchBefore(/`[\w]*/)
if (matchBefore) {
return {
from: matchBefore.from,
options: [
snippetCompletion('```${lang}\n${}\n```', {label: '```'}),
],
}
}
},
The code works great, and it does add code block where I need it.
But when I add it in block quote:
> |
then the resulting content is this:
> ```lang
|
```
How to edit this code so that the markup is continued? Not just in block quote but in lists and other elements as well?
I would like the result to look like this:
> ```lang
> |
> ```