-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Nested script inside jsx tag is not parsed #1342
Comments
Hi! Thanks for reporting. We might handle it at some point, but this is really not on agenda for the near future. |
That's fine. Thanks. |
I reopen this issue, since it should actually be fixable. |
Thanks @Golmote ! Can't wait to try it! |
By the way, just for your information, I'm using prismjs for syntax highlighting with Monaco Editor. See the live demo at: http://demo.rekit.org/element/src%2Ffeatures%2Fcommon%2Fmonaco%2Fworkers%2FsyntaxHighlighter.js/code . Did some job on finding jsx text elements. |
I accidently closed the issue when #1345 was merged. But it was actually fixed in the next commit (cc80ccd). A test for this specific use case was added in f0e6249. So it should be fixed now! 🎉 Note that we probably still won't be able to handle infinite recursion (since JS regexps are not recursive), but at least this use case is handled! |
You mean to handle plain text (#1304 and #1294)? That's interesting! Unfortunately, this looks too complicated to be included in Prism like this... I'd love to find a lighter solution to this issue. |
Yes exactly! Both for the problem and code complication.. Hope it would be resolved from prismjs side finally some day! Thanks for your effort on making such a great tool! |
The text was updated successfully, but these errors were encountered: