I think this might be avoided by moving import statements in the markdown just where we need it instead of at the top of the file.