1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

add target blank for links

This commit is contained in:
Valeriu 2021-04-02 20:50:59 +03:00
parent 2d19715a1d
commit 5b0301d8ac

View File

@ -1340,6 +1340,7 @@ class Parsedown
'text' => $matches[1],
'attributes' => array(
'href' => $url,
'target' => '_blank',
'class' => 'text-blue hover:opacity-60 transition',
),
),
@ -1445,6 +1446,7 @@ class Parsedown
'nonNestables' => array('Url', 'Link'),
'attributes' => array(
'href' => null,
'target' => '_blank',
'class' => 'text-blue hover:opacity-60 transition',
'title' => null,
),
@ -1598,6 +1600,7 @@ class Parsedown
'text' => $url,
'attributes' => array(
'href' => $url,
'target' => '_blank',
'class' => 'text-blue hover:opacity-60 transition',
),
),
@ -1620,6 +1623,7 @@ class Parsedown
'text' => $url,
'attributes' => array(
'href' => $url,
'target' => '_blank',
'class' => 'text-blue hover:opacity-60 transition',
),
),