Experimenting with collapsing images.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4258 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-04-13 00:03:22 +00:00
parent 84aec0278d
commit 1e37eeea05
3 changed files with 17 additions and 0 deletions

View File

@ -26,6 +26,7 @@ function image(node, entering) {
} else {
if (entering) {
if (this.disableTags === 0) {
this.lit('<div class="img_caption">' + this.esc(node.firstChild?.literal || node.destination) + '</div>');
if (this.options.safe && potentiallyUnsafe(node.destination)) {
this.lit('<img src="" alt="');
} else {