This adds Mmark support for captions under quotes block or fenced code
blocks. This can be used by adding: `Caption: <text>` under the block.
All text up to the next empty line is read.
This adds ast.Caption, which is a noop in the html/renderer because the
elements need to walk this node outside of the main ast. The node can
only hold span elements (p.inline()).
Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Implement document divisions
front/main/back-matter. There is no html equivalent of these.
Signed-off-by: Miek Gieben <miek@miek.nl>
This adds detection for headers that start with `.#`. It adds the Mmark
extension, update the mmar test, adds some documentation.
I'm reusing the ast.Heading to have a maximum amount of code re-use.
Signed-off-by: Miek Gieben <miek@miek.nl>