Markdown beginner's guide

I'm exploring this Markdown recently and I found it really simple and elegent. So I would really like to share some of what I learnt with everyone. I'll keep it up to date in the future. You can also download Markdown beginner's guide.md file from my git

Content

  1. Why use Markdown?

  2. Markdown Editor software

  3. Common grammar

  4. Markdown Math

1 Why use Markdown?

  • "Anyone can open" and "Style compatibility" :

    Markdown is plain text, anyone can open markdown. And because of that, you will not run into the problem like compatibility issue when your software need to be updated in the future (ex: MS office).

  • It Converts to HTML Easily:

    HTML is the markup language of the entire World Wide Web (web), but more importantly, it is also the markup language used in the current mainstream e-book format.

  • It is generally used in many places:

    • Github and Gihub wiki

    • Slack, rocket chat, Skype

    • Project management products like Trello

    • Blog-aware static site generators like Jekyll or Hugo

2 Markdown Editor software

I personally recommend some Markdown editor software that are powerful, simple, easy to use and have preview.

3 Common grammar

Heading

By using # for heading 1, ## heading 2, ### heading 3, so on. Just like the title, date, and Author name

Un-ordered list

  • list1: "-"
  • list2: "*"
  • list3: "+"

ordered list

  1. list1
  2. list2
  3. list3

Quote

Writing is thinking

">" is the quote mark, space is needed between > and your words

Bold and Italic text

For bold text: ** or __

bold text

bold text

For italic text: * or _

italic text

italic text

Delete text

the text can be deleted too

The code references

You can used markdown to cite code from different programming languages:

  • Python:

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

    #include<stdio.h>
    int main(){
    print("hello world");
    return 0;
    }
  • MATLAB:

    %% Modify Plot Properties
    title('Sine Wave')
    xlabel('x')
    ylabel('sin(x)')
    fig = gcf;
    fig.MenuBar = 'none';

Highlight

use 'text' to Highlight

Separator

use " *" or "***" or "---" or "----------------"





Table

Syntax Description
Heading Title
Paragraph Text or images

Images

use

![]() format

format to resize the size of your picture

For example:

Link

use

[](): [] specifies name of your link, and () specifies the url of your link

For example:

Google scholar top publications

4 Markdown Math

Markdown takes Latex syntax to edit directly. But LaTex's grammar, editor, configuration, Chinese support, etc. are much more complicated than Markdown, and it is not as good as Markdown's mature community.

Greek letter

Use double $ to encompass the Greek symbol:

$\Gamma$、$\iota$、$\sigma$、$\phi$、$\upsilon$、$\Pi$、$\Bbbk$、$\heartsuit$、$\int$、$\oint$

\(\Gamma\)\(\iota\)\(\sigma\)\(\phi\)\(\upsilon\)\(\Pi\)\(\Bbbk\)\(\heartsuit\)\(\int\)\(\oint\)

operator

$+$、$-$、$=$、$>$、$<$、$\times$、$\div$、$\equiv$、$\leq$、$\geq$、$\neq$

\(+\)\(-\)\(=\)\(>\)\(<\)\(\times\)\(\div\)\(\equiv\)\(\leq\)\(\geq\)\(\neq\)

Trigonometric function and other math functions

$\tan$、$\sin$、$\cos$、$\lg$、$\arcsin$、$\arctan$、$\min$、$\max$、$\exp$、$\log$

\(\tan\)\(\sin\)\(\cos\)\(\lg\)\(\arcsin\)\(\arctan\)\(\min\)\(\max\)\(\exp\)\(\log\)

Set symbol

$\cup$、$\cap$、$\in$、$\notin$、$\ni$、$\subset$、$\subseteq$、$\supset$、$\supseteq$、$\N$、$\Z$、$\R$、$\R$、$\infty$

\(\cup\)\(\cap\)\(\in\)\(\notin\)\(\ni\)\(\subset\)\(\subseteq\)\(\supset\)\(\supseteq\)\(\N\)\(\Z\)\(\R\)\(\R\)\(\infty\)

Math equations in Markdown

\(z = x + y\)

\(a^2 + b^2 = c^2\)

\(\begin{vmatrix}a & b\\ c & d \end{vmatrix}=ad-bc\) and \(a_x + a_y = z_t\)

\[ \mathbf{V}_1 \times \mathbf{V}_2= \begin{vmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{vmatrix}\]

Reference

[1] Markdown Guide

[2] What is Markdown, and why should you use it?

Next Post Previous Post