-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Compiling Vue component fails when markdown includes invalid Vue syntax #4
Comments
Hi, I'm happy to hear that you're using this loader. |
Great, thank you. For my use case, I don't think I'd ever need a component within a markdown code block, so maybe the solution is to skip any code in there. |
@anthonygore Just published the fix for that as |
Unfortunately, it doesn't. Here's the error I get (I'm using the plugin with Nuxt):
I've attached the offending file. The line which causes the error is:
|
Sorry, that's my bad (and thank for providing your actual sample ❤️). I just published a quick fixes again as |
beta.2 works perfectly. Thanks! |
Great. I will release as |
Released: https://www.npmjs.com/package/frontmatter-markdown-loader/v/1.4.0 Thanks for your feedback @anthonygore ! |
Hi! Thanks for making this brilliant tool, I'm currently using it in a Nuxt.js project.
I've found a bug, though. If my markdown includes code examples which are considered invalid Vue syntax an error is thrown.
For example:
This will crash the compiler.
The thing is, that code is not Vue syntax, it's Laravel Blade syntax, but I think the compiler is confused and thinks it is maybe??? This only happens when
vue
is set to true in options.Is there anyway to fix this or perhaps provide a way to escape the code so the compiler doesn't crash?
The text was updated successfully, but these errors were encountered: