Markdown Common Elements

Markdown Common Elements

Basic formatting

This note demonstrates some of what Markdown is capable of doing.

And that's how to do it.

{% highlight html %} This note demonstrates some of what [Markdown][some/link] is capable of doing. {% endhighlight %}


Headings

There are six levels of headings. They correspond with the six levels of HTML headings. You've probably noticed them already in the page. Each level down uses one more hash character. But we are using just 4 of them.

Headings can be small

Headings can be small

Headings can be small

Headings can be small

{% highlight raw %}

Heading

Heading

Heading

Heading

{% endhighlight %}


Lists

Ordered list

  1. Item 1
  2. A second item
  3. Number 3

{% highlight raw %}

  1. Item 1
  2. A second item
  3. Number 3 {% endhighlight %}

Unordered list

  • An item
  • Another item
  • Yet another item
  • And there's more...

{% highlight raw %}

  • An item
  • Another item
  • Yet another item
  • And there's more... {% endhighlight %}

Paragraph modifiers

Quote

Here is a quote. What this is should be self explanatory. Quotes are automatically indented when they are used.

{% highlight raw %}

Here is a quote. What this is should be self explanatory. {% endhighlight raw %}


URLs

URLs can be made in a handful of ways:

{% highlight raw %}


Horizontal rule

A horizontal rule is a line that goes across the middle of the page. It's sometimes handy for breaking things up.

{% highlight raw %}

{% endhighlight %}


Images

Markdown can also contain images. I'll need to add something here sometime.

{% highlight raw %} ![Markdowm Image][/image/url] {% endhighlight %}

Markdowm Image

Figure Caption?

{% highlight raw %} ![Markdowm Image][/image/url]

Photo by John Doe
{% endhighlight %}

Markdowm Image

Photo by John Doe

Bigger Images?

{% highlight raw %} ![Markdowm Image][/image/url]{: class="bigger-image" } {% endhighlight %}

Markdowm Image{: class="bigger-image" }


Code

A HTML Example:

{% highlight html %}

Document

Just a test

{% endhighlight %}

A CSS Example:

{% highlight css %} pre { padding: 10px; font-size: .8em; white-space: pre; }

pre, table { width: 100%; }

code, pre, tt { font-family: Monaco, Consolas, Inconsolata, monospace, sans-serif; background: rgba(0,0,0,.05); } {% endhighlight %}

A JS Example:

{% highlight js %} // Sticky Header $(window).scroll(function() {

if ($(window).scrollTop() > 900 && !$("body").hasClass('show-menu')) {
    $('#hamburguer__open').fadeOut('fast');
} else if (!$("body").hasClass('show-menu')) {
    $('#hamburguer__open').fadeIn('fast');
}

}); {% endhighlight %}