Multiline vue-components transform error
See original GitHub issueDescribe the bug
index.md with
<foo-bar>
xxx
</foo-bar>
will throw error
[vite] SFC template compilation error:
docs/index.md:4:1
Element is missing end tag.
1 |
2 | <template><div><h1 id="test"><a class="header-anchor" href="#test" aria-hidden="true">#</a> test</h1>
3 | <foo-bar>
| ^
4 | <p>xxx
5 | </foo-bar></p>
docs/index.md:5:11
Invalid end tag.
3 | <foo-bar>
4 | <p>xxx
5 | </foo-bar></p>
| ^
6 | </div></template>
To Reproduce Steps to reproduce the behavior:
clone my repo
run npm i && npm run docs
Expected behavior A clear and concise description of what you expected to happen.
no error or warning and transform will be correct
System Info
- vitepress version:0.6.0
- vite version:1.0.0-rc.3
- Node version:v12.16
- OS version:10.15
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Rendering newline character in VueJS - Stack Overflow
I'm creating a note app where users can add a note by entering multiline text in a textarea. When ...
Read more >vue/no-setup-props-destructure
Rule Details #. This rule reports the destructuring of props passed to setup causing the value to lose reactivity.
Read more >How to Create Multi-Line String with Template Literals in ...
So template literals will output as it appears, spaces and all! Because of that, be mindful of your blank spaces or lines. const...
Read more >How to Create Multi-Line String with Template Literals
It's super easy now to create multi-line strings with Template Literals in JavaScript. No more messy string line breaks. Yay, ES6!
Read more >Form Textarea | Components - BootstrapVue
Create multi-line text inputs with support for auto height sizing, ... mounted) into the document or re-activated when inside a Vue <keep-alive> component....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
this
p
tag is not in my code, it add by markdown-it. see my demoyeah , i got it.as your said It’s not a problem, it’s just that I don’t understand Markdown very well. need use more space-line for markdown