Demo
The following illustrates the basic features of the generator.
Typography
This is some text.
It does the usual markdown italics, bold, etc.
The footnotes
extension lets me add footnotes like so.1
Quotes
This is a block quote. It might have some
code
in it.
Admonitions
This is a pull-text. On Desktop, it floats on the right. On mobile, it should show up right in the center.
There is also support for various types of “admonitions” (using the python
markdown admonitions
extension).
Note
This is a note. It provides useful context, or something like that.
Tables
The templating engine is jinja2. The following things are available in the render context:
Key | Value |
---|---|
opts |
Command line options |
cfg |
Configuration from 1st doc in config.yml |
site |
Configuration from 2nd doc in config.yml |
pipeline |
Configuration from 3rd doc in config.yml |
file |
File information about the post from stat() |
doc |
Configuration information included in the top yaml block |
Code Blocks
int main(int argc, char** argv) {
printf("%s\n", "Hello, world!");
return 0;
}
Headings
(With optional subtitles!)
Text.
This is an H2!
Text.
This is an H3!
Text.
This is an H4!
Text.
This is an H5!
Text.
Source
This page was generated from the following markdown:
# Demo
[TOC]
The following illustrates the basic features of the generator.
## Typography
This is some text.
It does the usual markdown _italics_, **bold**, etc.
The `footnotes` extension lets me add footnotes like so.[^1]
##### Quotes
> This is a block quote.
> It might have some `code` in it.
##### Admonitions
!!! pull-text ""
This is a pull-text. On Desktop, it floats on the right. On mobile, it should
show up right in the center.
There is also support for various types of "admonitions" (using the python
markdown `admonitions` extension).
!!! note
This is a note. It provides useful context, or something like that.
##### Tables
The templating engine is [jinja2](https://jinja.palletsprojects.com/en/2.11.x/).
The following things are available in the render context:
Key | Value
---------- | ---------------------------------------------------------
`opts` | Command line options
`cfg` | Configuration from 1st doc in `config.yml`
`site` | Configuration from 2nd doc in `config.yml`
`pipeline` | Configuration from 3rd doc in `config.yml`
`file` | File information about the post from `stat()`
`doc` | Configuration information included in the top yaml block
##### Code Blocks
```C
int main(int argc, char** argv) {
printf("%s\n", "Hello, world!");
return 0;
}
```
# Headings
## (With optional subtitles!)
Text.
## This is an H2!
Text.
### This is an H3!
Text.
#### This is an H4!
Text.
##### This is an H5!
Text.
[^1]: This is the first footnote.
# Source
This page was generated from the following markdown:
:::md
{{ raw_content | indent }}
-
This is the first footnote. ↩