#Proper way to target="_blank"
3 messages · Page 1 of 1 (latest)
Hi @wild horizon. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
The knowledge sources do not explicitly document the recommended way to add target="_blank" to Markdown links in Nuxt Content .md files. There is no mention of Markdown link syntax with {target="_blank"} or how to handle escaping issues with ESLint or other linters in the provided documentation.
However, the Nuxt UI and NuxtLink components do support the target="_blank" attribute when used in Vue components or with their respective UI components, as shown in examples for components like UUser, UBlogPost, and UPageAnchors—but these are Vue templates, not Markdown files. For example:
<UUser
to="<https://github.com/benjamincanac">
target="_blank"
name="Benjamin Canac"
description="Software Engineer"
:avatar="{ src: '<https://github.com/benjamincanac.png'> }"
/>
For Markdown files, the knowledge sources do not provide a solution or workaround for the escaping issue you described with [title](url){target="_blank"} and ESLint. If you need to ensure external links open in a new tab and want to avoid linting issues, you may need to consult the Nuxt Content documentation or community for the latest best practices, as this is not covered in the provided sources.