Org Mode in Hakyll
Testing Pandoc's emacs-org file conversion to html, based on this page.
This is the end of post itself. Everything below is just to test how Pandoc handles org files.
This is H1
There is paragraph under h1
H2
H3
Some basic test
This is bold, italic, code
, verbatim
and strike text.
- However bold and italic doesn't play well when used together like in markdown.
- However bold and italic doesn't play well when used together like in markdown.
List
- Bullet
- Another bullet
- child
- deep
- child
Other style
- Bullet
- Another bullet * child * deep
Other style
- Bullet
- Another bullet
- child
- deep
- child
Style *
isn't supported.
Links
Check List [1/3] [33%]
- [ ] Item
- [ ] Item
- [X] Checked item
Heading and has special class however <ul>
and <li>
are plain.
Task List
TODO some to-do
DONE done to-do
Items are added with special class.
Tables
number | description |
---|---|
1 | looooong long name |
5 | name |
<tr>
has even
and odd
classes.
Source Code
Emacs Lisp:
(defun negate (x)
"Negate the value of x."
(- x))
(print
(negate 10))
-10
There are interesting classes like sourceCode
and example
. Also there html5 attributes prefixed with rundoc-
.
Haskell:
factorial :: Int -> Int
factorial 0 = 1
factorial n = n * factorial (n - 1)
LaTeX
- Characters: α β → ↑ ∨ ∧ ⟹ π ∞
- Inline Math: f(x)=x2
- More complex: $\frac{x^2}{2}$
LaTeX characters are wrapped in <em>
and Math inside <span class="math inline">
.
ℋℯ𝓁𝓁ℴ!
NOTE: There is standard LaTeX embeded above which is skipped during compilation to HTML.
This is using https://www.mathjax.org/
$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$
Deadline
DEADLINE: <2016-12-20 Tue>
Tagged
Tags are not visible in render
Block Quote
Org mode is amazing. So is Hakyll & Pandoc.
Image
http://media.riffsy.com/images/f8534774b678ad1932b379a03460680b/raw
Images has to have extension like:
then it can be loaded even from other origin..
Description List
- Frodo
- The hobbit ringbearer
- Aragorn
- The human ranger, true kind of Gondor
- Gandalf
- The Grey Wizard
creddits to https://www.reddit.com/user/nihilmancer
Footnotes
This has some1 foot note.
The link is: http://orgmode.org↩