posit-dev / posit-dev/positron
LaTeX renderer ignores $ when immediately following another character
@seeM is already working on this.
Since Aug 7, 2026.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
System details:
Positron and OS details:
Positron Version: 2024.09.0 (user setup) build 103
Code - OSS Version: 1.93.0
Commit: 8274fe26a1582fa0dd0096d6631b500f591416c4
Date: 2024-09-30T02:52:11.236Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631
Interpreter details:
Python 3.12.6, jupyterlab 4.2.5, notebook 7.2.2.
Describe the issue:
The LaTeX renderer ignores the $ symbol (to start an inline LaTeX expression) when it immediately follows another character.
Steps to reproduce the issue:
Create a markdown field. Any LaTeX expression immediately following another character will not be rendered, e.g. kg m$^{-3}$ does not render, but kg m $^{-3}$ does.
Expected or desired behavior:
An expression like kg m$^{-3}$ should render as LaTeX.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.