Highlighting

Default highlighter is highlight.js. But Galileo just generates HTML so if you want to see colorized output then you have to load javascript and css.

<!-- example -->
<link rel="stylesheet" href="http://yandex.st/highlightjs/8.0/styles/default.min.css">
<script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script>
<script> (fuction () { hljs.initHighlightingOnLoad(); })(); </script>

Tables

source:

| Item      | Value | Qty |
| --------- | -----:|:--: |
| Computer  | $1600 | 5   |
| Phone     |   $12 | 12  |
| Pipe      |    $1 |234  |

result:

Item Value Qty
Computer $1600 5
Phone $12 12
Pipe $1 234

Fenced Code Blocks

source:

```perl
#!/usr/bin/env perl

use strict;
use warnings;
use Galileo;
```

result:

#!/usr/bin/env perl

use strict;
use warnings;
use Galileo;

Definition Lists

source:

Term 1
:   Definition 1

Term 2
:   This definition has a code block.

        code block

result:

Term 1
Definition 1
Term 2

This definition has a code block.

code block

Special Attributes

You can add class and id attributes to headers and gfm fenced code blocks.

source:

``` {#gfm-id .gfm-class}
var foo = bar;
```

## A Header {#header-id}

### Another One ### {#header-id .hclass}

Underlined  {#what}
==========

result:

<pre id="gfm-id" class="gfm-class prettyprint"><code>var foo = bar;</code></pre>

<h2 id="header-id">A Header</h2>

<h3 id="header-id" class="hclass">Another One</h3>

<h1 id="what">Underlined </h1>

Footnotes

source:

Here is a footnote which will be located at the end of the page[^footnote].

[^footnote]: Here is the *text* of the **footnote**.

result:

Here is a footnote which will be located at the end of the page1.

SmartyPants

SmartyPants extension converts ASCII punctuation characters into “smart” typographic punctuation HTML entities.

ASCII HTML
Single backticks 'Isn't this fun?' ‘Isn’t this fun?’
Quotes "Isn't this fun?" “Isn’t this fun?”
Dashes This -- is an en-dash and this --- is an em-dash This – is an en-dash and this — is an em-dash

Newlines

source:

Roses are red
Violets are blue

result:

Roses are red
Violets are blue

Strikethrough

source:

~~Mistaken text.~~

result:

Mistaken text.


  1. Here is the text of the footnote.