Open Mitchellkohler opened 1 year ago
You can update the ProseA component if you want to update behavior!
The first paragraph describes how you override content components
Here is the source of ProseA
<NuxtLink>
defaults to "noopener noreferrer"
for external links
I think this behavior should be changed to not alter rel
by default - people could easily customize it via ProseA
.
Okay, apparently this comes from the 'rehype-external-links'
plugin which is enabled by default. It can be disabled via config:
content: {
markdown: {
rehypePlugins: {
'rehype-external-links': false,
}
},
},
Okay, apparently this comes from the
'rehype-external-links'
plugin which is enabled by default. It can be disabled via config:content: { markdown: { rehypePlugins: { 'rehype-external-links': false, } }, },
Is it still working? It is not for me.
This worked for me:
mdc: {
// removing rel="nofollow" from links
rehypePlugins: {
"rehype-external-links": {
options: {
rel: ["external"]
}
}
},
}
Environment
Darwin
v14.15.0
2.15.8
-
yarn@1.22.19
webpack
target
,generate
,head
,css
,plugins
,components
,buildModules
,modules
,cookies
,content
,build
,sitemap
,publicRuntimeConfig
@nuxt/content@1.15.1
,~/modules/nuxt-cookie-control-master
,@nuxtjs/sitemap@2.4.0
Build Modules:
-
Reproduction
n.a.
Describe the bug
A Link in Markdown automatically has a rel="nofollow noopener noreferrer". However I expect that all links are "follow links" and only are "nofollow noopener noreferrer links" when I state this in the markdown.
Used markdown:
[Link Text](https://yourwebsite.com/)
Additional context
No response
Logs
No response