Jared Dantis

Formatting text with
Facebook Messenger

Note: Right now, this works only on desktop.

Bold, italics, strikethrough

*This text is in bold.*

This text is in bold.

_This text is in italics._

This text is in italics.

~This text is in strikethrough.~

This text is in strikethrough.

Monospaced text

This word is `monospaced.`

This word is monospaced.

`This line is monospaced.`

This line is monospaced.

Syntax highlighting

The general format is ```language <code> ```.

<h1>HTML code!</h1>

<h1>HTML code!</h1>

echo "This is PHP code!";

echo "This is PHP code!";

mathematics syntax

Messenger seems to use1 KaTeX, so you can follow the commands outlined in KaTeX's wiki. There are too many to list here.

$$ \frac{1}{\frac{1}{2} - \frac{1}{3}} $$

$$ E = \frac{mc^2}{\sqrt{1-\frac{v^2}{c^2}}} $$

If you want to type a TeX equation inline, wrap it like \( ... \) instead of $$ ... $$.

Did you know that \( \sin 2\alpha = 2 \sin \alpha \cos \alpha \) ?

Did you know that ?

This website is open source!

Have anything to add? Drop by the GitHub page and start contributing 😁