Add markdown utils
- External links open in a new tab - Clicking on image open an image modal
This commit is contained in:
parent
a75a080b9c
commit
d7cc620a0a
12 changed files with 51 additions and 16 deletions
|
@ -475,7 +475,11 @@ function onWindowReady() {
|
|||
|
||||
$('a').click(function() {
|
||||
var href = $(this).attr('href');
|
||||
if (!href || href === '#' || href.startsWith("javascript")) {
|
||||
var target = $(this).attr('target');
|
||||
if (!href || href === '#' || href.startsWith("javascript") ||
|
||||
$(this).attr("data-featherlight") ||
|
||||
target === "_blank"
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue