1All of the basic [Markdown](https://kramdown.gettalong.org/quickref.html) formatting is supported (powered by [kramdown](https://kramdown.gettalong.org)).
2 3Additionally, Markdown is extended to support the following:
4 5#### Math
6 7$$f(n) = \begin{cases}
8 \frac{n}{2}, & \text{if } n \text{ is even} \\
9 3n+1, & \text{if } n \text{ is odd}
10\end{cases}
11$$
1213The code for the example above is:
1415```
16$$f(n) = \begin{cases}
17 \frac{n}{2}, & \text{if } n \text{ is even} \\
18 3n+1, & \text{if } n \text{ is odd}
19\end{cases}
20$$
21 ```
2223Both inline and display modes are [supported](https://kramdown.gettalong.org/syntax.html#math-blocks). Math is rendered server-side and does **not** require JavaScript. Powered by [KaTeX](https://github.com/Khan/KaTeX).
2425#### Syntax highlighting
2627Specify the [language](https://kramdown.gettalong.org/syntax.html#language-of-code-blocks) of a code block and the syntax will be highlighted:
2829```ruby
30puts "Hello, #{user}"
31add_5 = -> x { x + 5 }
3233class Greeter
34 # ...
35end
36 ```
3738Powered by [CodeRay](https://github.com/rubychan/coderay).
3940#### Oneboxes
4142URLs of supported resources are replaced with boxes like these:
4344**Twitter** `https://twitter.com/glebm/status/836237442747228162`:
45https://twitter.com/glebm/status/836237442747228162
46**GitHub** `https://github.com/google/dart-scissors/pull/67`:
47https://github.com/google/dart-scissors/pull/67
48**StackExchange** `http://codegolf.stackexchange.com/questions/45701`:
49http://codegolf.stackexchange.com/questions/45701
50**Amazon** `https://www.amazon.co.uk/dp/0521797071`:
51https://www.amazon.co.uk/dp/0521797071
52**YouTube** `https://www.youtube.com/watch?v=1QP7elXwpLw`:
53https://www.youtube.com/watch?v=1QP7elXwpLw
54**Google Maps** `https://goo.gl/maps/R6nj3Qwf2LR2`:
55https://goo.gl/maps/R6nj3Qwf2LR2
5657Many more resources are [supported](https://github.com/discourse/onebox/tree/master/lib/onebox/engine). Powered by the [onebox](https://github.com/discourse/onebox) library.