XRENDERING-631: The annotated HTML5 renderer should not render figcaption inside macros
* Change the annotated HTML5 renderer to only render figure captions when inside a figure. * Extend BlockStateChainingListener with an event stack to allow getting the parent event. * Extend BlockStateChainingListenerTest to test for parent events.