resolves #220 support explicit subs on blocks

Additional changes:

* added test for empty attribute list or anchor above block
* folded whitespace in inline image
* simplified call to parse block attributes