Preserve footnotes and refs in fenced code blocks