initial crack at a block-level figure parser
I didn't like the other figure + figcaption parsers, they either assumed a lot about usage (e.g. images only), or they were inline parsers that either wrapped the figure in a paragraph tag (which is incorrect syntax) or did span trickery (annoying) so, this handles images and maybe other things, and does things properly with figures as their own blocks. incomplete but it works with my images, and should allow for looping (for multi-line content) in the future?
This commit is contained in:
13
tests/instance/pages/figures.md
Normal file
13
tests/instance/pages/figures.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# test of figures
|
||||
|
||||
|> 
|
||||
|: this is my cool logo!
|
||||
{: .right }
|
||||
|
||||
|> 
|
||||
|: this is my cool logo without an attr!
|
||||
|
||||
|> 
|
||||
{: .left }
|
||||
|
||||
|> 
|
||||
Reference in New Issue
Block a user