Open external links in new tab
parent
e7b89420a1
commit
d33dd70562
|
@ -24,11 +24,14 @@ 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({
|
||||||
include: {
|
include: {
|
||||||
|
|
Reference in New Issue