partial fix to allow footnotes to have codemirror areas