[Markdown]: Get Started with Markdown Posts
markdown
04/15/2019
Markdown usage
Heading:
# H1 Heading
## H2 Heading
### H3 Heading
H1 Heading
H2 Heading
H3 Heading
Texts:
Here's some basic textHere's some _italics_Here's some **bold** textHere's some **_bold italics_** textHere's some ~~strikethrough~~ text
Here's some basic text
Here's some italics
Here's some bold text
Here's some bold italics text
Here's some strikethrough text
Link Example
[Click here](https://github.com/ellismin)
Image Example
![](../../2019/images/somePhoto.jpeg)
You can also use html in markdown
<!-- Basic html for hyperlink (opening in a new tab) --><a href="https://github.com/ellismin" target="_blank"> Link in new tab</a>
Line breaks
<br/><br/><br/>
(Line breaks here)
Unordered list:
Here's unordered list: (Use either '-' or '\*')
- First item- Second item- Third item - Third item-2
Here's unordered list: (Use either '-' or '*')
- First item
- Second item
- Third item
- Third item-2
Numbered list:
Here's numbered list:
1. First item2. Second item3. Third item 1. Third item-2
Here's numbered list:
- First item
- Second item
- Third item
- Third item-2
Blockquote
> Here is example of blockquote>> Est est ipsum tempor eu occaecat. Duis commodo laboris voluptate reprehenderit minim laborum ad deserunt ut magna. Lorem laborum ut officia eu nulla pariatur nulla eiusmod aliquip. Fugiat laboris consectetur tempor anim fugiat.
Here is example of blockquote
Est est ipsum tempor eu occaecat. Duis commodo laboris voluptate reprehenderit minim laborum ad deserunt ut magna. Lorem laborum ut officia eu nulla pariatur nulla eiusmod aliquip. Fugiat laboris consectetur tempor anim fugiat.
Nested Blockquote
> > Cupidatat aute ea incididunt dolor mollit ipsum. Eu culpa dolor deserunt nostrud do et commodo consequat. Fugiat tempor sunt qui laborum nulla nostrud eu dolore voluptate non in. Id exercitation consectetur elit voluptate ea et nulla ea ea amet labore sunt ullamco ullamco.
Cupidatat aute ea incididunt dolor mollit ipsum. Eu culpa dolor deserunt nostrud do et commodo consequat. Fugiat tempor sunt qui laborum nulla nostrud eu dolore voluptate non in. Id exercitation consectetur elit voluptate ea et nulla ea ea amet labore sunt ullamco ullamco.
> > > Cupidatat aute ea incididunt dolor mollit ipsum. Eu culpa dolor deserunt nostrud do et commodo consequat. Fugiat tempor sunt qui laborum nulla nostrud eu dolore voluptate non in. Id exercitation consectetur elit voluptate ea et nulla ea ea amet labore sunt ullamco ullamco.
Cupidatat aute ea incididunt dolor mollit ipsum. Eu culpa dolor deserunt nostrud do et commodo consequat. Fugiat tempor sunt qui laborum nulla nostrud eu dolore voluptate non in. Id exercitation consectetur elit voluptate ea et nulla ea ea amet labore sunt ullamco ullamco.
Inline code block
Here is `in-line code block` example
Here is in-line code block
example
Python code block:
```pythonimport numpy as np
def test_function(x, y):z = np.sum(x,y)return z
```
import numpy as np
def test_function(x, y):z = np.sum(x,y)return z
JavaScript code block:
```jsconst name = "Ellis"console.log(name);```
const name = "Ellis"console.log(name)
HTML code block
```html<p class="someClass">some paragraph</p>```
<p class="someClass">some paragraph</p>
Highlights in code blocks
There are several ways to highlight code blocks
- Use
// highlight-line
next to the code block to highlight - Specify which lines you want to highlight. i.e.
```jsx{1-2, 7}
- Specify to surround code block(s) inside
// highlight-start
and// highlight-end
```jsximport React, { Component } from "react"class Profile extends Component { render() { return (<div></div>) }}export default Profile```
import React, { Component } from "react"class Profile extends Component { render() { return <div></div> }}export default Profile
Displaying diff
```diff+ {+ import React, { Component } from "react"++ class SomeClass extends Component {+ render() {- return (<div></div>)+ }+ }+ export default SomeClass```
+ {+ import React, { Component } from "react"++ class SomeClass extends Component {+ render() {- return (<div></div>)+ }+ }+ export default SomeClass