This is an R Markdown document. Display equation number. Sum_ n1 10 n2 is rendered as 10 n 1n2.
From inside of VSCode.
In addition to using numbered block mode equation syntax for standard numbering ie. A formula can be displayed inline eg. Install Extension and then select the MarkdownMath extension from the list. Just put your LaTeX math inside.