Skip to content

Support <Markdown> slot #44

Description

@atinux

I would like to explore the possibility of using slots for Markdown, see https://github.com/nuxt-themes/alpine/blob/00b07fecfece1cd249468c80b874008b9e3792c2/elements/Hero.vue#L19-L20

Transforming:

<h1class="text-3xl font-bold text-primary-900 dark:text-primary-100"><Markdownv-if="$slots.title" :use="$slots.title" unwrap="p" class="!my-0" /><spanv-else>Default title</span></h1>

Into

<h1class="text-3xl font-bold text-primary-900 dark:text-primary-100"><Markdown:use="$slots.title" unwrap="p" class="!my-0">Default title</Markdown></h1>

Also, with the current Hero implementation, I have this warning:
Screenshot 2022-08-02 at 02.13.51@2x.png

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions