Formatting Demo

Started by glebm
729f685b8e8d7e9feed18c177c82e59b?s=128&d=mm

glebm

All of the basic Markdown formatting is supported (powered by kramdown).

Additionally, Markdown is extended to support the following:

Math

f(n)={n2,if n is even3n+1,if n is oddf(n) = \begin{cases} \frac{n}{2}, & \text{if } n \text{ is even} \\ 3n+1, & \text{if } n \text{ is odd} \end{cases}

The code for the example above is:

$$
f(n) = \begin{cases}
  \frac{n}{2}, & \text{if } n \text{ is even} \\
  3n+1,        & \text{if } n \text{ is odd}
\end{cases}
$$

Both inline and display modes are supported. Math is rendered server-side and does not require JavaScript. Powered by KaTeX.

Syntax highlighting

Specify the language of a code block and the syntax will be highlighted:

1puts "Hello, #{user}"
2add_5 = -> x { x + 5 }
3
4class Greeter
5  # ...
6end

Powered by CodeRay.

Oneboxes

URLs of supported resources are replaced with boxes like these:

Twitter https://twitter.com/glebm/status/836237442747228162:

GitHub https://github.com/google/dart-scissors/pull/67:

StackExchange http://codegolf.stackexchange.com/questions/45701:

Amazon https://www.amazon.co.uk/dp/0521797071:

YouTube https://www.youtube.com/watch?v=1QP7elXwpLw:

Google Maps https://goo.gl/maps/R6nj3Qwf2LR2:

Many more resources are supported. Powered by the onebox library.