mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Make external links open in a new browser window
This commit is contained in:
parent
d6c975ab37
commit
7eb3bfe69a
@ -22,6 +22,13 @@ const markdownEngines = {
|
||||
typographer: true,
|
||||
})
|
||||
.enable('image')
|
||||
.use(require('markdown-it-link-attributes'), {
|
||||
pattern: /^https?:/,
|
||||
attrs: {
|
||||
target: '_blank',
|
||||
rel: 'noopener',
|
||||
},
|
||||
})
|
||||
.use(require('markdown-it-anchor'), {
|
||||
permalink: true,
|
||||
permalinkClass: 'header-link',
|
||||
|
Loading…
x
Reference in New Issue
Block a user