You can only start an embedded section if the you consume characters at the start of the embedded block (like consuming the <style> tag) #3741
Replies: 3 comments
-
I am not 100% what the limitation is about, as that comment was most likely written by Daan Leijen, initial author of Monarch... Perhaps it would be possible to use a lookahead to match a rule and then switch to an embedded mode... |
Beta Was this translation helpful? Give feedback.
-
Or maybe just adding |
Beta Was this translation helpful? Give feedback.
-
I'm looking at adding a language or two to monaco, as well as extending the markdown syntax. |
Beta Was this translation helpful? Give feedback.
-
monaco-editor version: 0.18.1
Browser: Safari 13.0.1
OS: macOS 10.14.6
Steps or JS usage snippet reproducing the issue:
First let me say, I found a workaround for this that gets the job done for me. So I don't personally need this bug fixed. I'm only mentioning it here in case it's not already known about, so that you can be made aware.
The bug is described in the Monarch documentation page:
(Note that this bug says Aug 2012 so it's been 7 years.)
I can't tell if this bug still exists or not, but either the bug should be fixed if it does, or the documentation should be fixed if it doesn't.
This seems to be related to a comment in the Markdown syntax definition on the same page and on the monaco-languages repo, first found in commit 23b3050:
Beta Was this translation helpful? Give feedback.
All reactions