/ Markdown

Markdown Style Guide

Credit due to Styleguide

Check out how all your default styles look, before you start having to write overrides to override your overrides.

Table of contents


Headings

A h1 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A linked h1 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A h2 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A linked h2 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A h3 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A linked h3 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A h4 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A linked h4 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A h5 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A linked h5 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A h6 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

A linked h6 header

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.


Text

Full sentence

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis.

Text-level semantics

The a element example
The abbr element and abbr element with title examples
The b element example
The cite element example
The code element example
The del element example
The dfn element and dfn element with title examples
The em element example
The i element example
The img element example
The ins element example
The kbd element example
The mark element example
The q element inside a q element example
The s element example
The samp element example
The small element example
The span element example
The strong element example
The sub element example
The sup element example
The var element example
The u element example


Blockquotes

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.

Pullquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida.

Markup

<blockquote class="pullquote">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida.</p>
</blockquote>

Lists

Ordered List

  1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  2. Aliquam tincidunt mauris eu risus.
  3. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. This bullet tests content going onto two lines

Un-ordered list

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. This bullet tests content going onto two lines

Definition List

Definition Title
Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.
Lorem ipsum dolor sit amet
Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris commodo consequat.

Nested Lists

  • Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.
  • Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.
    • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    • Aliquam tincidunt mauris eu risus:
      1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
      2. Aliquam tincidunt mauris eu risus.
      3. Vestibulum auctor dapibus neque.
    • Vestibulum auctor dapibus neque.
  • Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.
  • Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.

Media

Image

Kitten

Kitten

Figure

Figcaption content

Code and Syntax Highlight

int charArrayToInt32Array(char * clearText, unsigned int * int32result) {
  int i = 0, j = 0, total = 0;
  int dec[4] = {24, 16, 8, 0};
  unsigned int returnedInteger = 0;

  for (i=0; clearText[i]; i+=4) {
    returnedInteger = 0;
    for (j=0; j <= 3 ; j++) {
      returnedInteger |= (unsigned int) (clearText[i+j] << dec[j]) ;
    }

    int32result[total] = returnedInteger;
    total++;
  }
  return total;
}
<div class="wrapper">
  <p><b>HTML</b> syntax highlighting</p>
</div>
.wrapper {
  width: 960px;
  margin: 0 auto;
}
var s = "JavaScript syntax highlighting";
alert(s);
No language indicated, so no syntax highlighting. 
But let's throw in a <b>tag</b>.

Forms

Inputs as descendents of labels (form legend)












Buttons

Ghostium have predefined button styles with some helper classes.

Anchor Button

<a href="#" class="btn">Anchor Button</a>

Anchor Primary Button

<a href="#" class="btn btn-primary">Anchor Button</a>

<button class="btn btn-big">Big Button</button>

<button class="btn btn-primary btn-small">Primary small Button</button>

Tables

Markdown Less Pretty
Still renders nicely
1 2 3

Extra

Data binding API

All Ghostium actions are done via HTML5 Databinding.

  • a[data-pjax]: Perform a asynchronous content load
  • form[data-pjax]: Perform a asynchronous form post
  • [data-action]: Perform a action based on property value
  • open-drawer: Open drawer panel
  • close-drawer: Closes drawer panel
  • share-gpuls: Open a Google Plus share popup
  • share-facebook: Open a Facebook share popup
  • share-twitter: Open a Twitter share popup
  • [data-load-image]: Perform a asynchronous image load
<div data-load-image="http://placekitten.com/2000/2000" style="width: 200px; height: 200px;"></div>

Helper classes

.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.pull-right {
  float: right !important;
}

.pull-left {
  float: left !important;
}

.hide {
  display: none !important;
}

.show {
  display: block !important;
}

.invisible {
  visibility: hidden;
}

.text-hide {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}