about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-07 14:39:16 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-07 14:39:16 +0200
commit47f1056fb753bff832787de707b854fc01b514a0 (patch)
tree8008e1fca4830ecfca1aa8f8f7e7624a4e3468ad /src/layout/engine.nim
parent10c7f7bac07398b1c7bb12731c240e77cbcd115e (diff)
downloadchawan-47f1056fb753bff832787de707b854fc01b514a0.tar.gz
layout: show [img] instead of image url
urls can get pretty long
Diffstat (limited to 'src/layout/engine.nim')
-rw-r--r--src/layout/engine.nim2
1 files changed, 1 insertions, 1 deletions
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())