Markdown Reference

A reference for markdown.

A reference for markdown language.

structure

title #

second level title ##

list

  • a ‘-’ followed by a space
  • a ‘-’ another one
  1. numbered list

  2. actual number doesn’t matter, just a number

    properly indented paragraph, with blank line and space.

    • another sublist
    • here
    • * works for unordered lists
    • + works the same
    • - as well
  3. checked box

    • unchecked
    • checked

format

  • emphasis: _emphasis_ or *emphasis*
  • strong emphasis: __strong emphasis__ or **strong emphasis**
  • combined emphasis: **combined _emphasis_**
  • strike through: ~~strike through~~
  • a new line in editor will result in no line break in the markdown display.
  • insert an empty to get a new paragraph
  • add <br/> to the end of the line to get a new line. a single back slash \ works for markdown but not generated website and double backslashes \\ works for a website but not markdown. Double space works for both but is not recommanded as editors sometimes delete them while saving.

code

  • `inline code` inline code

  • ```python

    code block

    ```

    1
    2
    3
    4
    
    square = [x*2 for x in range(10)]
    square = []
    for x in range(10):
        square.append(x**2) // indent requires four spaces.
    

Github images

1
![Single Tracking](/assets/images/single_object_tracking_1.png)

The format is ! [Alt Text] (link to image)

![Single_Tracking]({{ site.url }}/assets/images/single_object_tracking_1.png) img[alt=Single_Tracking] { width: 20px; }

If you want to change the size, use html

1
<img src="{{ site.url }}/assets/images/single_object_tracking_1.png" alt="drawing" width="500"/>
drawing

Block Quate

  • block quate continue

    Quote break

    anther quaote that is very long long long long long long long long long long long long long long.


Reference

Adapted from Markdown Cheatsheet by adam-p

Licence: CC-BY

Licensed under CC BY 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy