Switch fn_ref to fnref and footnote_ref to footnoteref because the symbol '_' would cause wrong highlighting in some editors.