Fix issue relating to R Markdown single-line LaTeX $$display equations$$