Skip to content

[201_101] fix: allow spaces after separator symbols in math mode#3040

Open
Prthmsh7 wants to merge 1 commit intoMoganLab:mainfrom
Prthmsh7:201_101
Open

[201_101] fix: allow spaces after separator symbols in math mode#3040
Prthmsh7 wants to merge 1 commit intoMoganLab:mainfrom
Prthmsh7:201_101

Conversation

@Prthmsh7
Copy link
Copy Markdown
Contributor

Fixes #3027

What

Allow space insertion after separator symbols in math mode by updating allow-space-after?.

Why

In math mode, spaces could not be inserted after certain symbols such as commas (,), while other punctuation like periods (.) allowed spacing. This inconsistency was caused by "separator" symbols being explicitly excluded from allowing spaces, leading to unintuitive typing behavior.

Before:
Screenshot 2026-03-26 at 5 05 38 AM

After:
Screenshot 2026-03-26 at 4 57 01 AM

How

Removed "separator" from the exclusion list in allow-space-after?. This enables normal space insertion after separator symbols, including ,, ;, and :.

How to Test

Verified space insertion after ,, ;, : works correctly.

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