mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
[examples/formatting.txt] new file.
This commit is contained in:
parent
654326aa8b
commit
733692bc9a
1 changed files with 24 additions and 0 deletions
24
examples/formatting.txt
Normal file
24
examples/formatting.txt
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
Prepending a less-than in a line makes it a quote:
|
||||||
|
|
||||||
|
> 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
URLs like https://en.wikipedia.org/wiki/Main_Page are made clickable.
|
Loading…
Reference in a new issue