Skip to content

fix: disable single-dollar math rendering - #135

Closed
fallleave001 wants to merge 1 commit into
agegr:mainfrom
fallleave001:fix/disable-single-dollar-math
Closed

fallleave001 wants to merge 1 commit into
agegr:mainfrom
fallleave001:fix/disable-single-dollar-math

Conversation

@fallleave001

Copy link
Copy Markdown
Contributor

Problem

remarkMath defaults to interpreting single dollar signs ($) as math delimiters, which breaks text containing currency values like $10. These get rendered as inline math instead of plain text.

Fix

Set singleDollarTextMath: false so only double-dollar ($$) triggers math rendering, while single dollar signs are treated as literal text.

remarkMath defaults to interpreting single dollar signs as math
delimiters, which breaks text containing currency values like $10.
These get rendered as inline math instead of plain text.

Set singleDollarTextMath: false so only double-dollar ($$) triggers
math rendering, while single dollar signs are treated as literal text.
@agegr

agegr commented Jul 11, 2026 •

Copy link
Copy Markdown
Owner

$x$ 这类行内公式是经常出现的。应该还是保留支持

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.

3 participants