Skip to content
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

Markdown in HTML is not parsed anymore #812

Closed
tonai opened this issue Jan 9, 2023 · 6 comments
Closed

Markdown in HTML is not parsed anymore #812

tonai opened this issue Jan 9, 2023 · 6 comments

Comments

@tonai
Copy link
Contributor

tonai commented Jan 9, 2023

Describe the bug
The text inside HTMl markup is not parsed as HTML anymore:
hellocode
(in fact it was working with markdown wrapped in Vue components, but does not work anymore)

To Reproduce
Create a slide containing the following code (Alert being a custom Vue Component with a slot):

Hello `first`

<Alert>Hello `second`</Alert>

the second word will not be rendered as a code block

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser: chrome 108.0.5359.94
  • Slidev version: 38.2
@tonai
Copy link
Contributor Author

tonai commented Jan 9, 2023

This behaviour has changed since version 0.33.1

@tonai
Copy link
Contributor Author

tonai commented Jan 9, 2023

Maybe this is due to the replacement of vite-plugin-md with vite-plugin-vue-markdown here a2e3569

@tonai
Copy link
Contributor Author

tonai commented Jan 10, 2023

One possible workaround is to write the code like this:

Hello `first`

<Alert>

Hello `second`

</Alert>

But it will introduce a new <p> inside the <Alert>

@tonai
Copy link
Contributor Author

tonai commented Jan 10, 2023

More precisely it is since the upgrade of vite-plugin-vue-markdown from 0.1.0 to 0.20.1

@tonai
Copy link
Contributor Author

tonai commented Jan 10, 2023

Related to unplugin/unplugin-vue-markdown#14

@tonai
Copy link
Contributor Author

tonai commented Jan 19, 2023

Not related to slidev, so we can close.

@tonai tonai closed this as completed Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant