Fixed an issue that was producing invalid XML.
Added the ability for topics with <refentry>s to have bug and editor links.