-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
I have a Footnote
component which is essentially expanded text:
<template>
<span class="footnote" @click="isExpanded = !isExpanded" :class="{ 'expanded': isExpanded }">
<span v-if="!isExpanded">{{ unexpandedText }}</span>
<span v-else v-html='text'></span>
</span>
</template>
This makes it so I can write stuff such as Some point <Footnote unexpandedText="(...)" text="(Unnecessary details)/>
. However, I would like to render markdown inside the component, so that I can write <Footnote text="**bold**"/>
.
This comment doesn't work for me, as it cannot find the imports (which apparently don't work in client side?)
Is there a way that I can make the component render markdown (ideally including the plugins I've added to it)? Thanks
Metadata
Metadata
Assignees
Labels
No labels