snac2/examples/formatting.txt

27 lines
736 B
Text
Raw Permalink Normal View History

2022-11-18 07:24:16 +00:00
Messages in `snac` allow a special subset of Markdown, that includes *emphasized*, **strong** and `monospaced` styles by surrounding text with one asterisk, two asterisks or backquotes, respectively.
Line breaks are output as you write it.
2022-12-04 11:18:07 +00:00
Prepending a greater-than symbol in a line makes it a quote:
2022-11-18 07:24:16 +00:00
> This is quoted text
>
> All angle-prepended lines are grouped in the same blockquote
It also allows preformatted text using three backquotes in a single line:
```
/* this is preformatted text */
struct node {
struct node *prev;
struct node *next;
};
```
2023-01-13 06:02:04 +00:00
URLs like https://en.wikipedia.org/wiki/Main_Page are made clickable, https://codeberg.org/grunfink/snac2.
2022-12-03 19:54:44 +00:00
Some emojis: X-D <3 :beer: :shrug: :shrug2: