Skip to content

Allow leading whitespace before math delimiters#1404

Merged
cyanzhong merged 1 commit intomainfrom
develop
May 1, 2026
Merged

Allow leading whitespace before math delimiters#1404
cyanzhong merged 1 commit intomainfrom
develop

Conversation

@cyanzhong
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CoreEditor markdown math extension (vendored from Joplin) so block-math parsing recognizes $$ delimiters even when they’re preceded by leading whitespace.

Changes:

  • Update the block-math start regex to allow leading whitespace before $$.
  • Add inline comments documenting the intended regex behavior (whitespace + optional blockquote prefix).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CoreEditor/src/@vendor/joplin/markdownMathParser.ts
Comment thread CoreEditor/src/@vendor/joplin/markdownMathParser.ts Outdated
@cyanzhong cyanzhong merged commit 0833fcb into main May 1, 2026
1 check passed
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.

2 participants