hackbyte

diaspora_markdown_quick_reference

Feb 24th, 2020
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

For everyone #newhere #neuhier #nouveauici #nouvelleici (please add more translated tags as comments for the next time!;))

via this post from @{dredmorbius@joindiaspora.com}

This reference is available as pastebin too. ;)


Contents:

1. Diaspora* #Markdown #Quick #Reference

2. Advanced Markdown #Tips and #Tricks

3. Version log. ;)


Markdown Quick Reference

There are some fun things you can do with Markdown formatting.

Feature Markdown Example
italic _italic_ italic
bold **bold** bold
strikethrough ~~strikethrough~~ strikethrough
superscript ^superscript^ ^superscript^
subscript ~subscript~ ~subscript~
links [Description](https://example.com/) Description
bare links <https://www.example.com> https://www.example.com
code `code`|code
escape \*escape\* *escape*

There are also:

Unordered lists:

  • Foo
  • Bar
    • Baz
    • Quz
* Foo
* Bar
  * Baz
    * Quz

Ordered lists:

  1. Foo
  2. Bar
    1. Baz
      1. Quz
1. Foo
1. Bar
   1. Baz
      1. Quz

Headers:

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6

Headers also:

Header 1

Header 2

Header 1
==========

Header 2
---------

Blockquote:

This is a blockquoted text passage.

You can nest your blockquotes.

Or unnest them again.

> This is a blockquoted text passage.
>> You can nest your blockquotes.
>
> Or unnest them again.

To product a code block, as above:

```
> This is a blockquoted text passage.
>> You can nest your blockquotes.
>
> Or unnest them again.
```

Or indent four spaces:

Normal text

Code block
Normal text

    Code block

Horizontal rule:


----

Image

Image Description

![Image Description](https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/Markdown-mark.svg/320px-Markdown-mark.svg.png "Image Title")

@{zebulon_1er@diasp.org} said; You can nest an Image into a Link like

Image Description

[![Image Description](https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/Markdown-mark.svg/320px-Markdown-mark.svg.png "Image Title")](https://en.wikipedia.org/wiki/Markdown)

How to create the table from the top of this #quick #reference

|Feature|Markdown|Example|
|:- |:- |:- |
|italic| `_italic_`| _italic_ |
|bold| `**bold**` | **bold** |
|strikethrough| `~~strikethrough~~` | ~~strikethrough~~ |
|superscript| `^superscript^`| ^superscript^ |
|links| `[Description](https://example.com/)`|[Description](https://example.com/)|
|code|\``code`\`|`code`|
|escape|`\*escape\*`|\*escape\*|

markdown #quick #reference #quickGuide #tips #googleplus #newhere #neuhier #nouveauici #nouvelleici #diaspora #formatting #fediverse


Advanced Markdown tricks:

From...

After the first three backticks which start a code block you can define for which language the syntax highlighting shall work

for i in range(10):
    print(i)

From...

For tables, there is a useful generator: https://www.tablesgenerator.com/markdown_tables


Version log:

Version Date Comment
Original Post from Doc Edward Morbius 2018-10-17
First repost 2020-03-04
Second Repost 2020-03-12 Image link fixed
Add Comment
Please, Sign In to add comment