From 47f1056fb753bff832787de707b854fc01b514a0 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 7 Jul 2023 14:39:16 +0200 Subject: layout: show [img] instead of image url urls can get pretty long --- src/layout/engine.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 7b13bbb5..2f926148 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -1545,7 +1545,7 @@ proc generateReplacement(ctx: var InnerBlockContext, child, parent: StyledNode) ctx.generateAnonymousInlineText(child.content.s, parent) of CONTENT_IMAGE: #TODO idk - ctx.generateAnonymousInlineText(child.content.s, parent) + ctx.generateAnonymousInlineText("[img]", parent) of CONTENT_NEWLINE: ctx.iflush() ctx.ibox = getTextBox(parent.computed.inheritProperties()) -- cgit 1.4.1-2-gfad0