Difference between revisions of "Help:TootCat/HTML/formatting/Markdown"
< Help:TootCat | HTML | formatting
Jump to navigation
Jump to search
(Created page with "{{fmt/title|formatting posts with Markdown}} Remember that anything that works with the HTML option will also work with the Markdown option! <syntaxhighlight lang=md>...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{fmt/title|formatting posts with Markdown}} | {{fmt/title|formatting posts with Markdown}} | ||
Remember that anything that works with the [[../|HTML option]] will also work with the Markdown option! | Remember that anything that works with the [[../|HTML option]] will also work with the Markdown option! | ||
+ | |||
+ | I've also posted these examples [https://toot.cat/@woozle/110673322263974593 on TootCat] so you can see how they look in practice. | ||
<syntaxhighlight lang=md> | <syntaxhighlight lang=md> | ||
− | |||
Character formatting: | Character formatting: | ||
===================== | ===================== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | = | + | * **bold** |
+ | * *italic* | ||
+ | * ~~strike~~ | ||
+ | * _underline_ | ||
+ | * `[link text](URL)` e.g. [toot.cat](https://toot.cat) - URL must include protocol:// | ||
+ | * ^superscript -- like: E=MC^2 | ||
+ | * I don't know how to turn it off without a space. | ||
+ | * You can even do supersuperscript: Normal^super^hyper makes "hyper" look like a superscript on "super" -- both higher and smaller | ||
+ | |||
Lists: | Lists: | ||
====== | ====== | ||
Line 22: | Line 26: | ||
2. numbered list item 2 | 2. numbered list item 2 | ||
− | |||
Fixed-pitch: | Fixed-pitch: | ||
============ | ============ | ||
+ | |||
`inline fixed-pitch text` | `inline fixed-pitch text` | ||
``` | ``` | ||
− | multiline fixed-pitch text | + | multiline fixed-pitch text: |
+ | multiple lines | ||
+ | of fixed-pitch font | ||
+ | (for pasting code examples and such) | ||
``` | ``` | ||
+ | Syntax highlighting does not seem to be supported at present. (Tsk tsk.) | ||
− | |||
Text blocks: | Text blocks: | ||
============ | ============ | ||
+ | |||
# Header 1 | # Header 1 | ||
## Header 2 | ## Header 2 | ||
Line 39: | Line 47: | ||
> quote-indented text | > quote-indented text | ||
− | + | Be sure to leave a blank line after the last bit of indented text, or the renderer may decide it should also be indented. (Nobody knows why.) | |
</syntaxhighlight> | </syntaxhighlight> | ||
+ | There's also a weird syntactical glitch which is probably not supported and may not always work, but which allows you to link to a tag without joining it ''while staying in the "deck" UI'' (i.e. opens in the right panel rather than a new tab), and also lets you put a secret message in the URL display in the bottom panel of most browsers. A demonstration is [https://toot.cat/@woozle/113977005250320776 here]. | ||
==Further Reading on Markdown== | ==Further Reading on Markdown== | ||
Note that TootCat only supports a small ''subset'' of Markdown. | Note that TootCat only supports a small ''subset'' of Markdown. |
Latest revision as of 01:48, 10 February 2025
formatting posts with Markdown
Remember that anything that works with the HTML option will also work with the Markdown option!
I've also posted these examples on TootCat so you can see how they look in practice.
Character formatting:
=====================
* **bold**
* *italic*
* ~~strike~~
* _underline_
* `[link text](URL)` e.g. [toot.cat](https://toot.cat) - URL must include protocol://
* ^superscript -- like: E=MC^2
* I don't know how to turn it off without a space.
* You can even do supersuperscript: Normal^super^hyper makes "hyper" look like a superscript on "super" -- both higher and smaller
Lists:
======
* bullet item one
* bullet item two
* sub-item for item 2 (2 spaces per indent)
* bullet item three
1. numbered list item 1
2. numbered list item 2
Fixed-pitch:
============
`inline fixed-pitch text`
```
multiline fixed-pitch text:
multiple lines
of fixed-pitch font
(for pasting code examples and such)
```
Syntax highlighting does not seem to be supported at present. (Tsk tsk.)
Text blocks:
============
# Header 1
## Header 2
### Header 3
> quote-indented text
Be sure to leave a blank line after the last bit of indented text, or the renderer may decide it should also be indented. (Nobody knows why.)
There's also a weird syntactical glitch which is probably not supported and may not always work, but which allows you to link to a tag without joining it while staying in the "deck" UI (i.e. opens in the right panel rather than a new tab), and also lets you put a secret message in the URL display in the bottom panel of most browsers. A demonstration is here.
Further Reading on Markdown
Note that TootCat only supports a small subset of Markdown.