-
I check out the <script setup lang="ts">
defineProps({
href: {
type: String,
default: ''
},
blank: {
type: Boolean,
default: false
}
})
</script>
<template>
<NuxtLink :href="href">
<slot />
</NuxtLink>
</template> But how to set this prop in markdown, most of the time we create a link by this syntax |
Beta Was this translation helpful? Give feedback.
Answered by
nobkd
Sep 22, 2022
Replies: 1 comment 7 replies
-
I think you have to use MDC syntax to be able define other props. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
Benbinbin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you have to use MDC syntax to be able define other props.
I'm relatively sure it's not possible to add other props when using the default Markdown syntax