-
Notifications
You must be signed in to change notification settings - Fork 22
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
MDCSlot not rendering markdown when unwrapping #251
Comments
I have been using app.vue <template>
<MDRenderer>
<MDC :value="md" unwrap="p" />
</MDRenderer>
</template>
<script setup>
const md = `
# H1
paragraph
`
</script>
<style>
// Just for illustration purposes
h1, p {
color: red;
}
</style> MDRender.vue <template>
<slot />
</template> In the |
Thanks for the detailed answer. Finally what I did based on your code, in order to have a "single component" is the following. Could be nice that there is something native to fit this case, though.
MDRenderer.vue
MDRendererSlot.vue
|
I have a simple component in order to render markdown that I get from an API. I want to be able to render it without a wrapping
, so I'm using
MDCSlot
. Here's my customMDRenderer
component.And I'm using it like this, but MD is not being rendered. (check working example here)
The text was updated successfully, but these errors were encountered: