@nuxt/content without rel

When using the @nuxt/content module, the <a> tags in the pages generated from Markdown always have a rel attribute. I don't want them to have this rel attribute. Please tell me how to configure this in nuxt.config.ts.
2 Replies
kapa.ai
kapa.ai5w ago
Hi @bloodmoon1980. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources do not contain information about a configuration option in nuxt.config.ts to globally remove the rel attribute from <a> tags generated by Markdown when using the @nuxt/content module. The documentation explains how to customize rendering of Markdown elements using Prose components (e.g., overriding <ProseA> for links), but it does not specify a direct configuration to remove the rel attribute from all links generated by @nuxt/content. You may need to create a custom Prose component (e.g., components/content/ProseA.vue) to control the attributes on rendered links, but this approach is not explicitly documented in the provided sources. For more details on customizing Prose components, see the Prose Components documentation<sup></sup>. If you need further guidance, you may want to consult the official Nuxt Content documentation or community for advanced customization. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5w ago
<@209573402602766338> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?