From 3119ef0f004b576d67737bebf517947f8819b4fa Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 22 Jul 2025 18:54:44 -0400 Subject: Render message markdown to HTML inside of ``. This simplifies data flow, at the potential expense of re-rendering HTML more often than strictly necessary. Requiring every path that produces a message-shaped object to pre-render markdown made things more interdependent than intended and slowed me down. --- ui/lib/outbox.svelte.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'ui/lib/outbox.svelte.js') diff --git a/ui/lib/outbox.svelte.js b/ui/lib/outbox.svelte.js index c4e2324..74f41bc 100644 --- a/ui/lib/outbox.svelte.js +++ b/ui/lib/outbox.svelte.js @@ -9,7 +9,6 @@ class SendToConversation { this.conversation = conversation; this.body = body; this.at = DateTime.now(); - this.renderedBody = md.render(body); } toSkeleton(sender) { @@ -19,7 +18,6 @@ class SendToConversation { conversation: this.conversation, sender, body: this.body, - renderedBody: this.renderedBody, }; } -- cgit v1.2.3