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
|
@ -923,4 +923,9 @@ input::placeholder{
|
|||
font-size: 22.5px;
|
||||
margin-right: 0.1em;
|
||||
}
|
||||
}
|
||||
|
||||
.featherlight-content {
|
||||
max-height: 80% !important;
|
||||
border-radius: 10px;
|
||||
}
|
|
@ -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