example/src/subpage/index.html.lg

Fri, 17 Jul 2020 10:00:47 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 17 Jul 2020 10:00:47 -0500
changeset 30
3ac53da03439
parent 21
3c71c525cec2
permissions
-rw-r--r--

Support loading TEMPLATE_PATH/katex_config.json.

10
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1 ---
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
2 title: This is a sub-page of an lgen test page
21
3c71c525cec2 Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents: 16
diff changeset
3 renderer: markdown-it
10
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
4 ---
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
5
16
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
6 With the pandoc-renderer in this page, we can use GitHub-flavoured markdown,
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
7 including syntax highlighting
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
8
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
9 ```lua
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
10 if math.random() > 0.5
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
11 io.write('Hello World')
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
12 end
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
13 ```
e377590e9b19 Support Pandoc rendering
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
14
21
3c71c525cec2 Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents: 16
diff changeset
15 We can also do math $x^2$ with KaTeX
3c71c525cec2 Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents: 16
diff changeset
16 $$
3c71c525cec2 Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents: 16
diff changeset
17 \sum_{k=1}^\infty \frac{1}{k} = \infty.
3c71c525cec2 Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents: 16
diff changeset
18 $$

mercurial