add processing for literals, block roles and chapters; handle whitespace