Markdown demo
This is a collection for the basic markdown syntax modified from markdown guide.
Note: press shift + command + V to open markdown preview in VS Code.
Basic syntax
Element | Syntax |
---|---|
Header | # H1 ## H2 |
Bold | **bold text** |
Italic | *italicized text* or _italicized text_ |
Blockquote | > blockquote |
List | 1. bla 2. blabla 3. blablabla |
List | - bla - blabla - blablabla |
Code | code |
Code block | code block |
Horizontal rules (separation) |
— or *** or ___ |
Link | [Bing](www.bing.com) |
Image | ![legend](image.jpg) |
escape | \ |
Extended syntax
Not all markdown support them. Note to leave a blank line before a table.
Elements | Syntax |
---|---|
Footnote | Sentence. [^1] [^1]: Footnote. |
Task list | - [ ] ToDo1 |
Definition | term : definition |
Latex in markdown
Markdown application and processor read and compile .markdown file into .html. MathJax is a tool for the conversion of LaTeX syntax in .markdown that works well on Jekyll and GitHub pages. By adding the following lines into /_layout/default.html, math formula can be easily represented.
For example,
- $K_d = \frac{k_b}{k_f}$
- $v = \frac{v_{max}[S]}{K_M + [S]}$
- $\sigma = \sqrt{\text{var}}$
- $\mu = \frac{1}{n} \sum_{k=1}^{n} x_k$
$$E = mc^2$$
$K_d = \frac{k_b}{k_f}$
$v = \frac{v_{max}[S]}{K_M + [S]}$
$\sigma = \sqrt{\text{var}}$
$\mu = \frac{1}{n} \sum_{k=1}^{n} x_k$
Here is a LaTeX cheat sheet.