Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rmd vertical pipe, then curly brace, then underscore leads to red bar under code #3360

Closed
pdbailey0 opened this issue Apr 28, 2022 · 3 comments
Labels

Comments

@pdbailey0
Copy link

What happened?

I'm writing an .Rmd and this code is marked as not correctly formatted (a red bar appears beneath it).

\begin{align}
|{Y}_i
\end{align}

image

This is a MWE, so no, I have no need to put Y in curly braces, but I may want to style it or use curly braces for any of a variety of LaTeX objects. And the vertical pipe (|) character also doesn't make sense here, but I may want to do something like this where it shows up as well:

\begin{align}
X|{\rm Y}_i \sim N(0,1)
\end{align}
@pdbailey0 pdbailey0 added the T: bug A bug in an existing language feature label Apr 28, 2022
@jwortmann
Copy link
Contributor

Your code examples seem to work fine for me with the built-in LaTeX syntax.

Unbenannt

Assuming .Rmd stands for R Markdown, you would need to file this report at the issue tracker of the package which provides that syntax.

@michaelblyons
Copy link
Collaborator

michaelblyons commented Apr 28, 2022

I am not familiar with Rmd. Your code looks kind of like LaTeX. Is that what you're choosing as the highlight language? That looks fine for me.

Screen Shot 2022-04-28 at 7 13 23 PM

Edit: Maybe this is relevant? REditorSupport/sublime-ide-r#45

@deathaxe deathaxe added invalid and removed T: bug A bug in an existing language feature labels Apr 29, 2022
@deathaxe
Copy link
Collaborator

Closing as it is no issue related to this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants