When we would normally be pushing a layer of NodeKind.PREFORMATTED, check if the stack has any HTML-elements with the <ref> tag and if that is the case don't push PREFORMATTED.
If other HTML-like tags need this in the future (onlyinclude? includeonly??) then this is the place where to add those checks.
Looking through the stack could be better. Filter? Any? Oh yeah, duh.
Fixes second part of #336
When we would normally be pushing a layer of NodeKind.PREFORMATTED, check if the stack has any HTML-elements with the
<ref>
tag and if that is the case don't push PREFORMATTED.If other HTML-like tags need this in the future (onlyinclude? includeonly??) then this is the place where to add those checks.
Looking through the stack could be better. Filter? Any? Oh yeah, duh.