🐛 Markdown Toolbar Buttons Do Not Toggle Properly
Description
The markdown formatting toolbar buttons (Bold, Italic, Strikethrough, Inline Code, Multiline Code) do not behave as toggle buttons.
Currently, when a formatting button is pressed, it inserts the corresponding markdown symbols but the button itself does not remain in an active state.
This makes the formatting experience inconsistent and confusing for users.
🔴 Issue: Button Activation Behavior
Formatting buttons should behave as toggle buttons.
Expected behavior:
- When pressed once → formatting mode becomes active
- When pressed again → formatting mode becomes inactive
- The button should visually indicate when it is active
Current behavior:
- Pressing the button only inserts markdown symbols
- The button does not stay in an active state
- Users cannot clearly see whether formatting is enabled or disabled
🧪 Affected Formatting Buttons
- Bold (
**)
- Italic (
*)
- Strikethrough (
~~)
- Inline Code (
`)
- Multiline Code (```)
💡 Suggested Improvement
- Implement proper toggle state for formatting buttons
- Provide visual feedback (active/pressed state)
- Ensure pressing the button again disables the formatting
Environment
- Latest
develop branch
- Reproducible in the message composer
Note
Other formatting issues such as nested or duplicate markdown symbols have already been resolved, so this issue only focuses on the button toggle behavior.