Laplacian

a minimalist Jekyll theme

Code blocks, Math, Tables, and GitHub gists

This post is copied from Trio and then modified with the aim to demonstrate some of the features.

Headings

This is how the headings look like.

Heading Level One (h1)

Heading Level Two (h2)

Heading Level Three (h3)

Heading Level Four (h4)

Heading Level Five (h5)
Heading Level Six (h6)

Code blocks

Since Laplacian uses redcarpet instead of kramdown, we can use the triple backticks to define fenced code blocks.

Here is how code blocks look in Laplacian:

#container {
    float: left;
    margin: 0 -240px 0 0;
    width: 100%;
}

You can also use liquid tag highlight which has a similar effect:

void main() {
    printf("Hello World!");
}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
#container {
    float: left;
    margin: 0 -240px 0 0;
    width: 100%;
}
def what?
  42
end

You can also use the triple tilde ala kramdown which same the same effect:

def what?
  42
end

MathJax Example

The Einstein field equations can be displayed nicely as follows.

Using original theme Lagrange’s example, the Schrödinger equation looks like this:

Footnotes

Markdown footnotes1 work nicely in Laplacian. You need to make sure proper extensions are enabled in either redcarpet or kramdown parsers.

Tables

This is how tables look. An excellent source to create tables in many formats (including Markdown) is Tables Generator.

Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1

Github Gists

This is how GitHub Gists look in Laplacian.

Blockquotes

Laplacian supports lists, <hr>s, <table>s and

blockquotes