add markdown to kiosk notes.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2025-02-19 09:10:03 -07:00
parent efa2bbf6cc
commit 29f24c527f
2 changed files with 10 additions and 3 deletions

View File

@@ -98,8 +98,8 @@
replace(rx_link, function(all, p1, p2, p3, p4, p5, p6) {
stash[--si] = p4
? p2
? '<img src="' + p4 + '" alt="' + p3 + '"/>'
: '<a href="' + p4 + '">' + unesc(highlight(p3)) + '</a>'
? '<img style="max-width:100%;max-height:100%;object-fit:scale-down;" src="' + p4 + '" alt="' + p3 + '"/>'
: '<a class="link-body-emphasis link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover" target="_blank" href="' + p4 + '">' + unesc(highlight(p3)) + '</a>'
: p6;
return si + '\uf8ff';
});