Elements

Headers

H1

H2

H3

H4

H5
H6
View Code...
# H1
## H2
### H3
#### H4
##### H5
###### H6

Emphasis

Emphasis, aka italics, with asterisks or underscores.
Strong emphasis, aka bold, with asterisks or underscores.
Combined emphasis with asterisks and underscores.
Strikethrough uses two tildes. Scratch this.

View Code...
Emphasis, aka italics, with *asterisks* or _underscores_.  
Strong emphasis, aka bold, with **asterisks** or __underscores__.  
Combined emphasis with **asterisks and _underscores_**.  
Strikethrough uses two tildes. ~~Scratch this.~~

Highlight

I am highlighted text.
View Code...
{% include elements/highlight.html text="I am highlighted text." %}

Blockquotes

Blockquotes are very handy in email to emulate reply text. This line is part of the same quote.

Quote break.

This is a very long line that will still be quoted properly when it wraps. Oh boy let’s keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote.

View Code...
> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.

Quote break.

> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.

I’m a link

View Code...
[I'm a link](https://www.google.com)

Line Breaks

Here’s a line for us to start with.

This line is separated from the one above by two newlines, so it will be a separate paragraph.

This line is also a separate paragraph, but… This line is only separated by a single newline, so it’s a separate line in the same paragraph.

View Code...
Here's a line for us to start with.

This line is separated from the one above by two newlines, so it will be a *separate paragraph*.

This line is also a separate paragraph, but...
This line is only separated by a single newline, so it's a separate line in the *same paragraph*.

Horizontal Rule




View Code...
___

---

***

Three or more Underscores, Hyphens or Asterisks…

Code

Inline code has back-ticks around it.

s = "Code Block Test";
print s;
View Code...
Inline `code` has `back-ticks around` it.

```
s = "Code Block Test";
print s;
```

Syntax Highlighting

var s = "This is JavaScript syntax highlighting";
alert(s);
s = "But this is Python syntax highlighting"
print s
View Code...
```javascript
var s = "This is JavaScript syntax highlighting";
alert(s);
```
 
```python
s = "But this is Python syntax highlighting"
print s
```

Github Gists

View Code...
{%- gist 3c466bc3c32c4ae5c9b36d1266b913d8 %}

To include a single file just add the file name after the gist ID:
{% gist 3c466b... Hello%20World.java %} or {% gist 3c466b... hello.py %}

Buttons

GitHub GitHub GitHub GitHub
View Code...
{% include elements/button.html link="https://github.com" text="GitHub" style="primary" size="sm" %}
{% include elements/button.html link="https://github.com" text="GitHub" %}
{% include elements/button.html link="https://github.com" text="GitHub" style="outline-dark" size="lg" %}
{% include elements/button.html link="https://github.com" text="GitHub" block=true %}

To center your buttons, surround it with the following HTML tag:
<p class="text-center"> {% include ... %} </p>

Know more about buttons from Bootstrap Buttons

Ordered List

  1. First ordered list item
  2. Another item
    • Unordered sub-list.
  3. Actual numbers don’t matter, just that it’s a number
    1. Ordered sub-list
  4. And another item.
    Some text that should be aligned with the above item.
View Code...
1. First ordered list item
2. Another item
   * Unordered sub-list. 
1. Actual numbers don't matter, just that it's a number
   1. Ordered sub-list
4. And another item.  
   Some text that should be aligned with the above item.

Unordered List

View Code...
* Unordered list can use asterisks
- Or minuses
+ Or pluses

List Group

View Code...
{% capture list_items %}
Google,https://www.google.com
GitHub,https://www.github.com
{% endcapture %}
{% include elements/list.html title="Websites" %}

Table Of Contents

View Code...
{% capture list_items %}
Headers
Emphasis
List
{% endcapture %}
{% include elements/list.html title="Table of Contents" type="toc" %}

Images

alt text

View Code...
![alt text](https://bit.ly/2TOsM7B "Building Image")

Figures

The Ocean
The Ocean
View Code...
{% include elements/figure.html image="https://bit.ly/2N69TKO" caption="The Ocean" %}
View Code...
{% capture carousel_images %}
https://bit.ly/2BBbVhc
https://bit.ly/2DOtxXB
{% endcapture %}
{% include elements/carousel.html %}

Videos

View Code...
{% include elements/video.html id="aZNbUITN-mA" %}

How to get a YouTube video ID?
The video ID is located in the URL of the video page, right after the v= URL parameter.
In this case, the URL of the video is: https://www.youtube.com/watch?v=aZNbUITN-mA.
Therefore, the ID of the video is aZNbUITN-mA.

Tables

Left Center Right
col 3 is right-aligned $160000
col 2 is centered $12
Use Markdown $1
View Code...
| Left          | Center        | Right   |
| ------------- |:-------------:| -------:|
| col 3 is      | right-aligned | $160000 |
| col 2 is      | centered      | $12     |
| **Use**       | `Markdown`    | $1      |