Replies: 1 comment
-
Hello, Why use Nuxt Link and not the markdown link? Il fact, markdown link is converted into a nuxt link! https://github.com/nuxt/content/blob/main/src/runtime/components/Prose/ProseA.vue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, a few questions regarding Markdown files & syntax w/ Content v2 (using v2.2.1) w/ Nuxt 3 (3.0.0-rc.13).
Background: I've used @nuxt/content v1 in the past, so I have quite a few
.md
files where HTML components are used.I noticed there was an answer regarding components with
props
specifically here: #1363 (comment), but not sure if there's a similar answer to all components as well.1. Is it still possible to reference components like
nuxt-link
andnuxt-img
by using HTML tags?I am regularly seeing this error for both
NuxtImg
andNuxtLink
when referencing them in a Markdown (.md) file like above^:2. If not, this means I have to change all HTML tags in my Markdown files over to the new MDC syntax?
3. Is there an example of how the MDC syntax would work for inserting a component which is inside of a multi-line block of text?
For example, in @nuxt/content (v1) I used to be able to do this:
How would this look in @nuxt/content (v2)? It would be nice to be able to continue having it all in one block/paragraph. From the current docs it seemed like the Props > Inline method example would be able to handle this, but maybe the syntax requires it as multiple lines?
I was expecting this to work based on the Docs examples, however it just shows up as plain text:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions