-
Notifications
You must be signed in to change notification settings - Fork 9
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
Embedded markdown recursion error #144
Comments
This is a known issue — when two syntaxes embed each other, and one injects escaping behavior, it loops when trying to compile them. The custom template code in JS Custom injects escaping behavior, so it would break if you embedded Markdown, which in turn embeds JS. To avoid this, the default behavior is to also build an extra configuration for embedding that disables custom templates. So your JS Custom syntax would embed Markdown, which would in turn embed the special embed configuration, which doesn't embed Markdown. I'm not sure exactly what's gone wrong in this case. Is that your exact entire settings file? The error message refers to a |
Sorry, bad copy past. I updated it to the full settings. I understand the suggestion conceptually, but do you have an example of setting up the embed config?
Sorry, the error was throwing on any of them immediately after rebuilding the syntax. |
I've been playing around with this without luck. Either it's a cycle between JS Custom and Markdown (and I don't see how that's happening) or it's somehow hitting the context limit without cycling (which seems implausible). I think later today I'll have to play around with a stripped-down Markdown syntax and see if I can isolate it. |
FWIW, I ran into this same issue with embedded SCSS. Not exactly clear to me how SCSS is embedding JS? Regardless, any progress on this? If it is possible to workaround this as described above...
... can you provide an example? Thanks! |
Sublime Text build number
4152
Example Code
JS Custom Preferences
Configuration name
Default/React (any of them).
Description
When I add a md tag to the list, and set the
scope:text.html.markdown
scope, I get the following error:Maybe I am doing something wrong? Is there a workaround for this error?
The text was updated successfully, but these errors were encountered: