signal-cli icon indicating copy to clipboard operation
signal-cli copied to clipboard

Feature request - Easy text formatting for *BOLD* , _ITALIC_ , ```MONOSPACE``` , ~STRIKETHROUGH~ etc

Open pharmankur opened this issue 1 month ago • 6 comments

Present text formatting option in signal-cli seems very problematic and difficult to code for .

Should we get easy to use text formatting options like available for whatsapp ? ( This also can ensure easy migration from whatsapp scripts to signal-cli ! )

Like -->

Italic

To italicize your message, place an underscore on both sides of the text: _text_

Bold

To bold your message, place an asterisk on both sides of the text: *text*

Strikethrough

To ~strikethrough~ your message, place a tilde on both sides of the text: ~text~

Monospace

To monospace your message, place three backticks on both sides of the text: ```text```

Bulleted list

To add a bulleted list to your message, place an asterisk or hyphen and a space before each word or sentence: * text * text Or - text - text

Numbered list

To add a numbered list to your message, place a number, period, and space before each line of text:

  1. text
  2. text

Quote

To add a quote to your message, place an angle bracket and space before the text: > text

Inline code

To add inline code to your message, place a backtick on both sides of the message: `text`

pharmankur avatar Nov 11 '25 07:11 pharmankur

For the record, this has been (partially?) implemented for the signal-cli-rest-api downstream, see scra issue #382.

m-ueberall avatar Nov 11 '25 08:11 m-ueberall

Yes it might be there but,

It would be pretty to have it like -->

signal-cli -u +4915151111111 send -m "Welcome to *SIGNAL*. This is a _fantastic_ piece of software and can be used as drop in replacement of ~WHATSAPP~. You can ```Enjoy``` playing with it ! " +4915152222222

Which results in actual message like ( ease of use ) -->

Welcome to SIGNAL. This is a fantastic piece of software and can be used as drop in replacement of ~WHATSAPP~. You can Enjoy playing with it !

pharmankur avatar Nov 11 '25 12:11 pharmankur

This could be supported similarly with an additional option --text_mode=styled. By default the message text shouldn't be interpreted or modified in any way. The styled mode could also interpret mentions (@+NUMBER).

However bulleted list, numbered list and quote aren't supported by the Signal protocol as formatting options.

AsamK avatar Nov 12 '25 05:11 AsamK

This could be supported similarly with an additional option --text_mode=styled. By default the message text shouldn't be interpreted or modified in any way. The styled mode could also interpret mentions (@+NUMBER).

However bulleted list, numbered list and quote aren't supported by the Signal protocol as formatting options.

Oh is it already supported ? Did not find any documentation on that in man pages

pharmankur avatar Nov 12 '25 06:11 pharmankur

Could, means it's not implemented yet.

AsamK avatar Nov 12 '25 07:11 AsamK

I would really love this, @AsamK please consider implementing this.

xcpn avatar Nov 28 '25 20:11 xcpn