diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-07 14:39:16 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-07 14:39:16 +0200 |
commit | 47f1056fb753bff832787de707b854fc01b514a0 (patch) | |
tree | 8008e1fca4830ecfca1aa8f8f7e7624a4e3468ad /src/layout/engine.nim | |
parent | 10c7f7bac07398b1c7bb12731c240e77cbcd115e (diff) | |
download | chawan-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.nim | 2 |
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()) |