Closed xxholly32 closed 4 years ago
and vitepress cant transform teleport
I think you made a mistake and mixed the closing tag of a p
with foo-bar
. Can you post the whole template?
this p
tag is not in my code, it add by markdown-it. see my demo
This is a feature of markdown-it
You can either do this: <foo-bar>xxx</foo-bar>
which will render xxx
directly as html within the component slot.
Or you can leave empty lines at the start and end of your content like this:
<foo-bar>
## xxx
yyy
</foo-bar>
Which will render <h2>xxx</h2><p>yyy</p>
within your component slot.
This is a nice feature that allows you to write markdown content inside a component - here's an example.
I've submitted a PR to get this included in the VuePress docs.
yeah , 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
Describe the bug
index.md with
will throw error
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