Skip to content

Instantly share code, notes, and snippets.

@elowy01
Last active May 26, 2020 09:40
Show Gist options
  • Save elowy01/3efb601c52444d212b5b89a83d10e34e to your computer and use it in GitHub Desktop.
Save elowy01/3efb601c52444d212b5b89a83d10e34e to your computer and use it in GitHub Desktop.
Markdown syntax cheatsheet
*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:
![alt text](img/folder_str1.png)
* 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