Markup
Description | Example | Result | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bold text | __bold text__ and **more bold** | bold text and more bold | |||||||||
italic text | _italic text_ and *more italic* | italic text and more italic | |||||||||
crossed out text | ~~crossed out text~~ | ||||||||||
link | [link text](http://google.com/) | link text | |||||||||
image | ![alt text](http://www.w3.org/Icons/w3c_home) | ||||||||||
numbered list | 1. apple 2. banana 3. pineapple |
|
|||||||||
bulleted list | - apple - banana - pineapple |
|
|||||||||
horizontal line | text over line - - - - text under line |
text over line text under line |
|||||||||
quote | http://reference > quote > text |
|
|||||||||
quote (alt) | ```quote http://reference quote text ``` |
|
|||||||||
spoiler | ```spoiler click me text ``` |
click me
text |
|||||||||
subscript | CH~3~CH~2~OH | CH3CH2OH | |||||||||
superscript | E^2^ = (mc^2^)^2^ + (pc)^2^2 | E2 = (mc2)2 + (pc)2 | |||||||||
code block | ```js const a = 2 let b = a * 3 ``` |
|
|||||||||
table |
| 1820 | 1920 | 2000 | | --- | --- | --- | | 35000 | 15000 | 17 | | 14.2 | 14.9 | 15.8 | |
|
|||||||||
footnote | this is a text[^1] [^1]: with a footnote |
this is a text[1]
|
|||||||||
cut (in blog entries) | text before cut --cut-- text after cut |
text before cut read more |
|||||||||
headers (if allowed) | ## big ### medium #### small |
bigmediumsmall |
Insert video
Links to youtube
and vimeo
will be converted to video player, if been placed
on separate paragraph:
paragraph with text
https://www.youtube.com/watch?v=o0u4M6vppCI
next paragraph
If link in paragraph is combined with something else, then only link text will be replaced:
paragraph with text and link https://www.youtube.com/watch?v=o0u4M6vppCI
Insert media and set image size
When you upload media, all images are stored in three sizes:
- sm - small (default)
- md - medium
- orig - original (or max allowed)
If you insert image tag and use address of photo page in your album, it will
be inserted as thumbnail with link to original. You can change image size
using md
and orig
modifiers:
![](http://example.com/member25/media/55c2)
- default attachment code, thumbnail.![md](http://example.com/member25/media/55c2)
- medium image.![orig](http://example.com/member25/media/55c2)
- max allowed image.
If you need to place text in alt
attribute, use |
to separate size modifier:
![Alt text|md](http://example.com/member25/media/55c2)
.
Paragraphs and line breaks
Paragraphs are separated by blank lines.
Single line breaks are disabled by default, but you can enforce those by
two spaces or \
at line end:
enforced␣␣
line\
break