Last active
May 26, 2020 09:40
-
-
Save elowy01/3efb601c52444d212b5b89a83d10e34e to your computer and use it in GitHub Desktop.
Markdown syntax cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Headers | |
# H1 | |
## H2 | |
### H3 | |
#### H4 | |
*Change font style to italic: | |
_thistext_ | |
*Change font style to bold: | |
**thistext** | |
*Write in subscript: | |
<sub>2</sub> | |
*Write in superscript: | |
<sup>2</sup> | |
#bulleted list | |
* Bullet 1 | |
* Bullet 2 | |
* Bullet 2a | |
* Bullet 2b | |
* Bullet 3 | |
* Substitute the value of a certain Python variable in a markdown cell: | |
avariable=3 | |
Hello, the results is {{avariable}} | |
* To mark a text as code use backticks: | |
`this is code` | |
* Fenced code block (use triple backticks) | |
``` | |
function test() { | |
console.log("notice the blank line before this function?"); | |
} | |
``` | |
* Fenced code block with Sintax highlighting | |
# In this case, we use a Python code block | |
```python | |
s = "Python syntax highlighting" | |
print s | |
``` | |
* Add a new line | |
Hello (2 spaces here) | |
World | |
* Adding exactly 2 new lines | |
Hello<br><br>World | |
* Links | |
[I'm an inline-style link](https://www.google.com) | |
You can [contact us](mailto:foo@bar) | |
* Mathematical notation: | |
\begin{align} | |
\dot{x} & = \sigma(y-x) \\ | |
\dot{y} & = \rho x - y - xz \\ | |
\dot{z} & = -\beta z + xy | |
\end{align} | |
* continue numbered list | |
Use four spaces to indent content between bullet points | |
1. item 1 | |
2. item 2 | |
``` | |
Code block | |
``` | |
3. item 3 | |
* Inserting an image: | |
 | |
* Setting the color of font | |
<font color=blue>Text</font> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment