Open external links in new tab
parent
e7b89420a1
commit
d33dd70562
|
@ -24,10 +24,13 @@ export default defineConfig({
|
||||||
syntaxHighlight: 'shiki',
|
syntaxHighlight: 'shiki',
|
||||||
shikiConfig: { theme: 'dracula' },
|
shikiConfig: { theme: 'dracula' },
|
||||||
rehypePlugins: [
|
rehypePlugins: [
|
||||||
rehypeExternalLinks,
|
[
|
||||||
{
|
rehypeExternalLinks,
|
||||||
target: '_blank',
|
{
|
||||||
},
|
target: '_blank',
|
||||||
|
rel: ['noopener', 'noreferrer'],
|
||||||
|
},
|
||||||
|
],
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
icon({
|
icon({
|
||||||
|
|
Reference in New Issue