Commit Graph

11 Commits

Author SHA1 Message Date
Miek Gieben f58a6fbfa8 fix test
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-03 17:58:50 +01:00
Miek Gieben 6f77bf5ca9 Add citationss
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-03 17:13:36 +01:00
Miek Gieben 864377cdbf More citations
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-03 14:27:02 +01:00
Miek Gieben 1c84e4fb3c Make captions not suck
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-02 09:41:49 +00:00
Miek Gieben 4c3e11dbb9 Fix code block captions
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-02 09:28:41 +00:00
Miek Gieben 77587eb931 Support captions
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>
2018-08-01 19:21:35 +01:00
Miek Gieben 055b0aac3f Add document divisions
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>
2018-08-01 13:46:33 +00:00
Miek Gieben f45815586d Mmark: add SpecialHeading
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>
2018-07-30 22:09:19 +01:00
Miek Gieben d98668d608 Add mmark test
All tests are contained in testdata/mmark.test. Currrently one simple
test is included there.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-07-30 09:50:50 +01:00
Vytautas Šaltenis 120bb2fae1 Get rid of the preprocess stage
Yay!!
2016-11-10 21:49:58 +02:00
Dmitry Chestnykh 29c5b49e95 Rename upskirtref to testdata; upskirtref_test.go to ref_test.go. 2015-03-24 06:28:49 +01:00