diff options
author | default <nobody@localhost> | 2022-11-18 08:24:16 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-18 08:24:16 +0100 |
commit | 733692bc9a008bf67dc91d08962c796def3f978f (patch) | |
tree | 3641ac1d617a3a9d04d56502c7bdcdf1ba9d9f40 | |
parent | 654326aa8bb1cae5105ffca2f227b71e5981290a (diff) |
[examples/formatting.txt] new file.
-rw-r--r-- | examples/formatting.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/formatting.txt b/examples/formatting.txt new file mode 100644 index 0000000..40a3f78 --- /dev/null +++ b/examples/formatting.txt @@ -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. |