Writing

Hydejack offers a few additional features to markup your markdown. Don’t worry, these are merely CSS classes added via the standard {:.my-class} syntax, so that your posts remain compatible with other kramdown processors.

NOTE: For an introduction to markdown in general, see Mastering Markdown and kramdown Syntax.

You can add a generated table of contents to any page by adding {:toc} below a list.

Markdown:

* this unordered seed list will be replaced by toc as unordered list
{:toc}


You can add a message box by adding the message class to a paragraph.

NOTE: You can add a message box.

Markdown:

**NOTE**: You can add a message box.
{:.message}


You can add large text by adding the lead class to the paragraph.

Markdown:

You can add large text.


You can make an image span the full width by adding the lead class.

Markdown:

![Full-width image](https://placehold.it/800x100){:.lead}


You can make a quote “pop out” by adding the lead class.

You can make a quote “pop out”.

Markdown:

> You can make a quote "pop out".


You can gray out text by adding the faded class.

Use this sparingly and for information that is not essential — or you don’t want viewers to read at all, like when you pull a line form a dirty rap song..

Markdown:

I'm faded, faded, faded.


To add a code block without syntax highlighting, simply indent 4 spaces (regular markdown). For code blocks with code highlighting, use ~~~<language>. This syntax is also supported by GitHub. For more information and a list of supported languages, see { Rouge }.

// Example can be run directly in your JavaScript console

// Create a function that takes two arguments and returns the sum of those
// arguments
var adder = new Function("a", "b", "return a + b");

// Call the function
// > 8


Markdown:

~~~js
// Example can be run directly in your JavaScript console

// Create a function that takes two arguments and returns the sum of those
// arguments
var adder = new Function("a", "b", "return a + b");

// Call the function
// > 8
~~~


Hydejack supports math blocks via KaTeX.

Why KaTeX instead of MathJax? KaTeX is faster and more lightweight at the cost of having less features, which, for the purpose of writing blog posts, should be a favorable tradeoff.

NOTE: KaTeX does not support the align and align* environments. Instead, aligned should be used, e.g. \begin{aligned} ... \end{aligned}.

Inline

Inline math f(x) = x^2$f(x) = x^2$.

Markdown:

Inline math $$f(x) = x^2$$.


Block

\begin{aligned}
\phi(x,y) &= \phi \left(\sum_{i=1}^n x_ie_i, \sum_{j=1}^n y_je_j \right) \\[2em]
&= \sum_{i=1}^n \sum_{j=1}^n x_i y_j \phi(e_i, e_j)            \\[2em]
&= (x_1, \ldots, x_n)
\left(\begin{array}{ccc}
\phi(e_1, e_1)  & \cdots & \phi(e_1, e_n) \\
\vdots          & \ddots & \vdots         \\
\phi(e_n, e_1)  & \cdots & \phi(e_n, e_n)
\end{array}\right)
\left(\begin{array}{c}
y_1    \\
\vdots \\
y_n
\end{array}\right)
\end{aligned}

Markdown:

\begin{aligned} \phi(x,y) &= \phi \left(\sum_{i=1}^n x_ie_i, \sum_{j=1}^n y_je_j \right) \\[2em] &= \sum_{i=1}^n \sum_{j=1}^n x_i y_j \phi(e_i, e_j) \\[2em] &= (x_1, \ldots, x_n) \left(\begin{array}{ccc} \phi(e_1, e_1) & \cdots & \phi(e_1, e_n) \\ \vdots & \ddots & \vdots \\ \phi(e_n, e_1) & \cdots & \phi(e_n, e_n) \end{array}\right) \left(\begin{array}{c} y_1 \\ \vdots \\ y_n \end{array}\right) \end{aligned}


Continue with Build »

Actions Speak Louder Than Words!

Powered by Jekyll and Hydejack v7.3.0