various hacks to support nitril style index directive (or more correctly ignore them appropriately without leaving cruft in the text)