Difference between revisions of "Help:TootCat/HTML/formatting/Markdown"

From Mew
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>...")
 
 
(One intermediate revision 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) - must be full URL with protocol
 
  
======
+
* **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>
 
==Further Reading on Markdown==
 
==Further Reading on Markdown==

Latest revision as of 15:44, 7 July 2023

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.)

Further Reading on Markdown

Note that TootCat only supports a small subset of Markdown.