myst-vs-code icon indicating copy to clipboard operation
myst-vs-code copied to clipboard

Fix directive YAML option blocks

Open chrisjsewell opened this issue 4 years ago • 1 comments

Currently, YAML block are added only for code blocks:

image

As you can see, they work. However, they will currently be matched at any point in the cell:

image

This needs to be fixed, so that they are only matched if they start on the first line. Then they can be rolled out for all directives. I'm not sure what the correct grammar if for this

chrisjsewell avatar Mar 19 '20 05:03 chrisjsewell

https://discuss.atom.io/t/sequential-match-rules-in-a-language-grammar/15777 https://github.com/Microsoft/vscode-textmate/issues/32

chrisjsewell avatar Mar 19 '20 05:03 chrisjsewell