Skip to content

Conversation

@jez
Copy link
Contributor

@jez jez commented Jan 20, 2026

Unlike pandoc itself, vim-pandoc-syntax eagerly treats everything after
a $ as inline math. The workaround for pandoc markdown documents that
make heavy use of $-based prices is to use \$, which both pandoc and
vim-pandoc-syntax recognize as a literal dollar sign.

Personally, I would rather have $ always mean a dollar sign, and use
\(...\) for inline math, because I never use \(...\) for anything
else.

With that in mind, I've added a way to disable all special behavior for
$...$ inline math.

Unlike pandoc itself, vim-pandoc-syntax eagerly treats everything after
a `$` as inline math. The workaround for pandoc markdown documents that
make heavy use of `$`-based prices is to use `\$`, which both pandoc and
vim-pandoc-syntax recognize as a literal dollar sign.

Personally, I would rather have `$` always mean a dollar sign, and use
`\(...\)` for inline math, because I never use `\(...\)` for anything
else.

With that in mind, I've added a way to disable all special behavior for
`$...$` inline math.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant