diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-07-22 18:54:44 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-08-19 15:08:39 -0400 |
| commit | 3119ef0f004b576d67737bebf517947f8819b4fa (patch) | |
| tree | 0999dedeea07d527255613bec8bd84e34e0501ed /ui/lib/outbox.svelte.js | |
| parent | 4ace27830ffea715c30f366765aeb231572c60ec (diff) | |
Render message markdown to HTML inside of `<Message />`.
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.
Diffstat (limited to 'ui/lib/outbox.svelte.js')
| -rw-r--r-- | ui/lib/outbox.svelte.js | 2 |
1 files changed, 0 insertions, 2 deletions
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, }; } |
