You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RMarkdown syntax highlighting does not seem to recognize \( \) and \[ \] as math delimiters.
Here is an example Rmd file to illustrate, and I have attached a screenshot of how the syntax highlighting looks.
---
title: "Sublime Text 4 R-IDE Rmd syntax highlighting problem"
author: "Randy Cragun"
output: html_document
---
Correct syntax highlighting:
* Inline equation: $\overline{Y}_{g,t}$
* Display equations:
$$\overline{Y}_{g,t}$$
\begin{equation}\overline{Y}_{g,t}\end{equation}
Possibly incorrect highlighting: inline equation: \(Y_{g,t}\)
Incorrect highlighting:
* Inline equation: \(\overline{Y}_{g,t}\) (everything after _ is treated as italic, which is possibly a second issue)
* Display equation:
\[\overline{Y}_{g,t}\]
I left two line breaks at the end of the file to illustrate that the highlighting suggests that there is an un-closed delimiter at the end.
\( \) should be treated as math delimiters. RMarkdown supports it. Pandoc supports it. Furthermore, $ $ is supposedly deprecated (see this answer, for example). I think the problem of underscore being treated as starting a section of italics will be solved if \( \) and \[ \] are recognized as math delimiters.
My system:
Sublime Text: build 4107
R-IDE: v0.2.7
LSP: v1.3.1 (rlang server enabled globally)
Package Control: v3.4.1
Windows 10 Home: version 20H2
I made no modifications to R-IDE or LSP settings after installing
The text was updated successfully, but these errors were encountered:
The RMarkdown syntax highlighting does not seem to recognize
\( \)
and\[ \]
as math delimiters.Here is an example Rmd file to illustrate, and I have attached a screenshot of how the syntax highlighting looks.
I left two line breaks at the end of the file to illustrate that the highlighting suggests that there is an un-closed delimiter at the end.
\( \)
should be treated as math delimiters. RMarkdown supports it. Pandoc supports it. Furthermore,$ $
is supposedly deprecated (see this answer, for example). I think the problem of underscore being treated as starting a section of italics will be solved if\( \)
and\[ \]
are recognized as math delimiters.My system:
The text was updated successfully, but these errors were encountered: