Lawrence Mier Digital Consultant

Lawrence Mier

A Californian living in Scandinavia

Forgetful Markdown and Assorted HTML

Markdown and Shortcode Examples

Lawrence Mier

4 minute read

Thanks!

Special thanks to Markdown Cheatsheet.


H1

H2

H3

H4

H5
H6

Alt-H1

Alt-H2

# H1
## H2
### H3
#### H4
##### H5
###### H6

Alt-H1
======

Alt-H2
------

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.

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.~~

  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.

    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.
    

I’m an inline-style link.

I’m an inline-style link with title.

I’m a reference-style link.

I’m a relative reference to a repository file.

You can use numbers for reference-style link definitions.

Or leave it empty and use the link text itself.

URLs and URLs in angle brackets will automatically get turned into links. http://www.example.com or http://www.example.com and sometimes example.com (but not on Github, for example).

Some text to show that the reference links can follow later.

[I'm an inline-style link.](https://www.google.com)

[I'm an inline-style link with title.](https://www.google.com "Google's Homepage")

[I'm a reference-style link.][Arbitrary case-insensitive reference text]

[I'm a relative reference to a repository file.](../blob/master/LICENSE)

[You can use numbers for reference-style link definitions.][1]

Or leave it empty and use the [link text itself].

URLs and URLs in angle brackets will automatically get turned into links.
http://www.example.com or <http://www.example.com> and sometimes
example.com (but not on Github, for example).

Some text to show that the reference links can follow later.

    [arbitrary case-insensitive reference text]: https://www.mozilla.org
    [1]: http://slashdot.org
    [link text itself]: http://www.reddit.com

Inline-style: alt text

Reference-style: alt text

Inline-style:
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")

Reference-style:
![alt text][logo]

[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"

Inline code has back-ticks around it.

var s = "JavaScript syntax highlighting";
alert(s);
s = "Python syntax highlighting"
print s
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
    Inline `code` has `back-ticks around` it.

    ```javascript
    var s = "JavaScript syntax highlighting";
    alert(s);
    ```

    ```python
    s = "Python syntax highlighting"
    print s
    ```

    ```
    No language indicated, so no syntax highlighting.
    But let's throw in a <b>tag</b>.
    ```
    ```

Colons can be used to align columns.

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don’t need to make the raw Markdown line up prettily. You can also use inline Markdown.

Markdown Less Pretty
Still renders nicely
1 2 3
Colons can be used to align columns.

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

There must be at least 3 dashes separating each header cell.
The outer pipes (|) are optional, and you don't need to make the
raw Markdown line up prettily. You can also use inline Markdown.

Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3

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.

> 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.
Caption 1
Caption 2
Caption 3
{{< fancybox path="/img/2014/04" file="pic01.jpg" caption="Caption 1" gallery="Gallery Name" >}}

{{< fancybox path="/img/2014/04" "pic02.jpg" caption="Caption 2" "Gallery Name" >}}

{{< fancybox "/img/2014/09" "pic03.jpg" "Caption 3" "Gallery Name" >}}

FancyBox HTML

Unfortunately not all features are built into fancybox yet. If you want 3 next to each other, then you have to use HTML (as far as I know):

New Property Interface
Old Tracking Interface
Beta Web & Apps
<div class="fancybox" style="display:inline-block;margin-right: 10px;">
    <a data-fancybox="Gallery Name" href="/img/main/new-property-interface.jpg" data-caption="New Property Interface"><img src="/img/main/new-property-interface.jpg" height="150"></a>
    <div class="caption">New Property Interface</div>
</div>
<div class="fancybox" style="display:inline-block;margin-right: 10px;">
    <a data-fancybox="Gallery Name" href="/img/main/old-property-tracking-settings.jpg" data-caption="New Property Interface"><img src="/img/main/old-property-tracking-settings.jpg" height="150"></a>
    <div class="caption">Old Tracking Interface</div>
</div>
<div class="fancybox" style="display:inline-block;margin-right: 10px;">
    <a data-fancybox="Gallery Name" href="/img/main/data-streams-property-tracking-interface.jpg" data-caption="New Property Interface"><img src="/img/main/data-streams-property-tracking-interface.jpg" height="150"></a>
    <div class="caption">Beta Web & Apps</div>
</div>

About

Welcome to my sandbox. This site is a place for me to experiment, try new things, and keep track of random thoughts or projects for future reference. Resume related things are here.

Recent posts

See more