QingWei-Li / vue-markdown-loader

📇 Convert Markdown file to Vue2.0 component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markdown 转 vue Syntax Error

cleverboy32 opened this issue · comments

commented

webpack4 "vue-markdown-loader": "^2.4.1"

{
                test: /\.md$/,
                use: [
                    {
                        loader: 'vue-loader',
                        options: {
                            compilerOptions: {
                                whitespace: false
                            }
                        }
                    },
                    {
                        loader: 'vue-markdown-loader/lib/markdown-compiler'
                    }
                ]
            }

image

commented

oh. its because I didn't config options: { raw: true}