-
Notifications
You must be signed in to change notification settings - Fork 23
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
[Feature request] Handle template error when vueTemplate is active #52
Comments
Hi ! |
I update my PR, to solve the problem ! It's work in production 👍 |
Any updates on this? |
Nop, I don't take time to try another fix sorry o/ |
Ok np I switched to @nuxtjs/mdc for now which also supports components in Markdown. |
Clear and concise description of the problem
When we use vueTemplate, if an incorrect syntaxe is provide to the compiler, the render disappear from the page and an error is throw in the console.
You can easily reproduce it here: https://vue-showdown.js.org/playground/. Just active
vueTemplate
and add<mycustomelement>
into the input to throw the error.Noticed that, the error is throwing only when the project is run in production mode. In dev mode, the render don't crash and warnings are display into the console.
Suggested solution
Add a try catch to the render function. If vueTemplate can't render the let showdown render it without vueTemplate option.
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: