Comments (8)
beta.2 works perfectly. Thanks!
from frontmatter-markdown-loader.
Hi, I'm happy to hear that you're using this loader.
That's a good point, I didn't suppose such the case. Vue compiler is just compiling whole HTML from the markdown compilation. Let me have time to solve that with the decent way.
from frontmatter-markdown-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.
from frontmatter-markdown-loader.
@anthonygore Just published the fix for that as v1.4.0-beta.1
. Hope you try on your end 🔍
https://www.npmjs.com/package/frontmatter-markdown-loader/v/1.4.0-beta.1
from frontmatter-markdown-loader.
Unfortunately, it doesn't. Here's the error I get (I'm using the plugin with Nuxt):
✖ error GEN ERR /2018/02/05/vue-laravel-crud
Error: Module build failed (from ./node_modules/frontmatter-markdown-loader/index.js):
SyntaxError: Unexpected token (1:6209)
at Parser.pp$4.raise (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:2610:13)
at Parser.pp.unexpected (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:637:8)
at Parser.pp$3.parseExprAtom (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:2094:10)
at Parser.parseExprAtom (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:4372:24)
at Parser.pp$3.parseExprSubscripts (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1955:19)
at Parser.pp$3.parseMaybeUnary (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1932:17)
at Parser.pp$3.parseExprOp (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1893:41)
at Parser.pp$3.parseExprOps (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1876:90)
at Parser.pp$3.parseMaybeConditional (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1857:19)
at Parser.pp$3.parseMaybeAssign (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1832:19)
at Parser.pp$3.parseExprList (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:2528:20)
at Parser.pp$3.parseSubscripts (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1983:29)
at Parser.pp$3.parseExprSubscripts (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1958:21)
at Parser.pp$3.parseMaybeUnary (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1932:17)
at Parser.pp$3.parseExprOp (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1893:41)
at Parser.pp$3.parseExprOps (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1876:90)
at Object.129 (c4ce59f971aa4fe0e5b4.js:7:7)
at __webpack_require__ (server-bundle.js:27:30)
at Function.module.exports.__webpack_require__.t (server-bundle.js:84:33)
at 0b3e8c358a80dcb6805b.js:1401:30
at <anonymous>
✖ error Error: Module build failed (from ./node_modules/frontmatter-markdown-loader/index.js):
SyntaxError: Unexpected token (1:6209)
at Parser.pp$4.raise (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:2610:13)
at Parser.pp.unexpected (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:637:8)
at Parser.pp$3.parseExprAtom (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:2094:10)
at Parser.parseExprAtom (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:4372:24)
at Parser.pp$3.parseExprSubscripts (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1955:19)
at Parser.pp$3.parseMaybeUnary (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1932:17)
at Parser.pp$3.parseExprOp (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1893:41)
at Parser.pp$3.parseExprOps (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1876:90)
at Parser.pp$3.parseMaybeConditional (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1857:19)
at Parser.pp$3.parseMaybeAssign (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1832:19)
at Parser.pp$3.parseExprList (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:2528:20)
at Parser.pp$3.parseSubscripts (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1983:29)
at Parser.pp$3.parseExprSubscripts (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1958:21)
at Parser.pp$3.parseMaybeUnary (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1932:17)
at Parser.pp$3.parseExprOp (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1893:41)
at Parser.pp$3.parseExprOps (/Users/anthonygore/Projects/pwa-news/node_modules/vue-template-es2015-compiler/buble.js:1876:90)
at Object.129 (c4ce59f971aa4fe0e5b4.js:7:7)
at __webpack_require__ (server-bundle.js:27:30)
at Function.module.exports.__webpack_require__.t (server-bundle.js:84:33)
at 0b3e8c358a80dcb6805b.js:1401:30
at <anonymous>
I've attached the offending file. The line which causes the error is:
<html lang="{{ app()->getLocale() }}">
2018-02-05-vue-laravel-crud.md.zip
from frontmatter-markdown-loader.
Sorry, that's my bad (and thank for providing your actual sample ❤️). I just published a quick fixes again as 1.4.0-beta.2
from frontmatter-markdown-loader.
Great. I will release as 1.4.0
later with some additional fixes.
from frontmatter-markdown-loader.
Released: https://www.npmjs.com/package/frontmatter-markdown-loader/v/1.4.0
Thanks for your feedback @anthonygore !
from frontmatter-markdown-loader.
Related Issues (20)
- Pure date gets parsed into UTC timestamp HOT 1
- How can we access the markdown attributes right from nuxt.config.js? HOT 1
- Using markdown-it plugin breaks the subcomponents inside the markdown file in nuxt HOT 6
- Vue component appears to be parsing mustache tags within code snippets HOT 5
- component HOT 1
- How can we enable code highlighting for markdown ? HOT 1
- How to install highlight.js with frontmatter-markdown-loader ? HOT 1
- Missing line breaks in code snippet HOT 5
- Cannot stringify POJOs with symbolic keys Symbol(Symbol.toStringTag) HOT 1
- How to use within a nuxt payload dynamic route HOT 1
- Using the dynamic example B, I am unable to render local components in markdown HOT 2
- Any way of using dynamic data from database for vue components?
- Is there a way to get last modified date and time of md file HOT 2
- Action Required: Fix Renovate Configuration
- vue: Unknown custom element from .md HOT 3
- Using style-tag breaks .md file HOT 5
- Vue component mode doesn't work on Vue 3 project due to this plugin is stuck on Vue 2 compiler; `vue-template-compiler` HOT 9
- Jest Transformer for the Loader
- Dependency Dashboard
- how to set attributes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frontmatter-markdown-loader.