Skip to content

Instantly share code, notes, and snippets.

@antixrist
Last active April 13, 2018 08:03
Show Gist options
  • Save antixrist/fff53467ae51cbce4ef8c75186b7ede1 to your computer and use it in GitHub Desktop.
Save antixrist/fff53467ae51cbce4ef8c75186b7ede1 to your computer and use it in GitHub Desktop.

Markdown Guide

Detailed: http://commonmark.org/help/

Bold

**bold**
__bold__

Italic

*italic*
_italic_

Header

# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######

Dividing line

***
---

^Super^script & Subscript

super x^2^
sub H~2~0

++Underline++ & Strikethrough

++underline++
~~strikethrough~~

==Mark==

==mark==

Quote

> quote 1
>> quote 2
>>> quote 3
...

List

ol
1.
2.
3.
...

ul
-
-
...

Link

Text Link
[Text](www.baidu.com)

Image Link
![Text](http://www.image.com)

Code

``` type

code block

```

` code `

int main()
{
    printf("hello world!");
}

code

Table

| th1 | th2 | th3 |
| :--  | :--: | ----: |
| left | center | right |
th1 th2 th3
left center right
---------------------- ------------- -----------------

Footnote

hello[^hello]

Look at the bottom1

Emojis

Detailed: https://www.webpagefx.com/tools/emoji-cheat-sheet/

:laughing:
:blush:
:smiley:
:)
...

😆😊😃:)

$\KaTeX$ Mathematics

We can render formulas for example:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$ We can also single-line rendering $$\sum_{i=1}^n a_i=0$$ Detailed: katexkatex function以及latex

Layout

::: hljs-left ::: hljs-left left ::: :::

::: hljs-center ::: hljs-center center ::: :::

::: hljs-right ::: hljs-right right ::: :::

deflist

Term 1

: Definition 1

Term 2 with inline markup

: Definition 2

    { some code, part of Definition 2 }

Third paragraph of definition 2.
Term 1

:   Definition 1

Term 2 with *inline markup*

:   Definition 2

        { some code, part of Definition 2 }

    Third paragraph of definition 2.

abbr

*[HTML]: Hyper Text Markup Language *[W3C]: World Wide Web Consortium The HTML specification is maintained by the W3C.

*[HTML]: Hyper Text Markup Language
*[W3C]:  World Wide Web Consortium
The HTML specification
is maintained by the W3C.

Footnotes

  1. footnote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment