feat(composer): list, quote, and strikethrough toolbar buttons (LC-300) #328
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/lc-300-composer-toolbar-blocks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds List, Quote, and Strikethrough buttons to the composer's Markdown formatting toolbar (LC-254), alongside the existing Bold / Italic / Code / Link.
Changes
server/templates/room/composer.html: three new[data-lc-fmt]buttons (text "S" line-through for strike; inline SVGs for list and quote), placed after Link and before the Preview toggle. The LC-254 IIFE gains alinePrefix(prefix, placeholder)helper (expands selection to whole lines, prefixes each; prefixes the current line or inserts a placeholder when there is no selection) and threeapply()cases:strike(reuses inlinewrap('~~','~~')),ul(-),quote(>). All dispatch the synthetic input that drives auto-resize / draft-save / send-enable.server/locales/{en,es}/room.ftl: label + placeholder keys for the three.server/src/views/markdown.rs: unit tests pinning~~x~~-><del>and> q-><blockquote>(<ul>already covered), so the toolbar output's render contract is guarded.No keyboard shortcuts for the three (the Ctrl+B/I surface is unchanged); no server route/DB change (the renderer already supports all three).
Testing
just check,just fmt,just test,just test-saasall pass.Not operator-visible (no env/config/contract change).