You can't make up you're own attributes, give special header the class
"special". Adjust all testcases.
<hr>: support block level attributes.
Add more tests for block level attributes.
Fix figure attributes, by re-adding the attribute to the inner block
(table, quote or code block).
Fixes#7
Signed-off-by: Miek Gieben <miek@miek.nl>
This syntax was actually stolen from Pandoc, where it is used for
Tables (will update that, once those PRs are in). So leave the original
(from mmark1) syntax makes sense.
Signed-off-by: Miek Gieben <miek@miek.nl>
Make these look like each other for consistency.
Citation can contain links use them to link to the bibliography.
Signed-off-by: Miek Gieben <miek@miek.nl>
To allow linking to indices by giving them an ID; without it an index
can not refer back to the actual index item from main index at the end
of the document.
Signed-off-by: Miek Gieben <miek@miek.nl>
This parsed (!item) as an index, subitems are allowed as well as making
the index primary (by adding another !: (!!item). The HTML output is
non-existent and there is no go in gomarkdown to render an index (left
to a custom renderer)
Signed-off-by: Miek Gieben <miek@miek.nl>
This is the same fix as for #40, but for quote block.
Add bare quote test to testdata/mmark.test as well for this.
Signed-off-by: Miek Gieben <miek@miek.nl>
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>