Hello everyone,

I would like to edit the style of the display equations in R Markdown, but not the inline equations. Apparently both are located within a span tag with class equal to math, so the CSS selector span.math will style both.

One solution that did work, but violates the underlying principle of R Markdown (https://rmarkdown.rstudio.com/authoring_pandoc_markdown.html%23raw-tex), is to apply an inline style attribute to a span tag wrapped around each display equation, which makes it hard to read the raw document.

Does the inline math equation have a unique id that separates it from display math equations? How would I find this out?

Is there an alternative way to solve this problem that does not involve using CSS selectors and knowing the id value for inline equations?

I am outputting to html and using the most recent version of RStudio. I have no additional extensions installed.

Cheers and thank you in advance,

Maureen