Add markdown utils

- External links open in a new tab
- Clicking on image open an image modal
This commit is contained in:
cuom1999 2024-06-06 21:17:11 -05:00
parent a75a080b9c
commit d7cc620a0a
12 changed files with 51 additions and 16 deletions

View file

@ -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;
}