Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop: Fixes #11335: Markdown editor: Auto-close backticks #11351

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Nov 8, 2024

Summary

This commit auto-matches "`" characters. Previously, closeBrackets was specified incorrectly (wrong type), which seems to have prevented bracket matching from taking place.

This change affects both mobile and desktop.

Fixes #11335.

Note

This pull request targets release-3.1.

On mobile, "auto-match brackets" is always disabled. As such, this pull request should only affect desktop.

Testing plan

Web:

  1. Open a note.
  2. Select text.
  3. Press `
  4. Verify that the text has been replaced with `
    • On mobile/web, automatch brackets is disabled.
  5. Press (
  6. Verify that no closing ) is added.

Desktop:

  1. Select text in a note.
  2. Press `.
  3. Verify that the text is surrounded by ```s.
  4. On a new line, press (.
  5. Verify that a closing ) is added.

This commit auto-matches ` characters. Previously, `closeBrackets` was
specified incorrectly (wrong type), which seems to have prevented
bracket matching from taking place.

Note: While this behavior change is a regression on desktop, it isn't on
mobile. If this change is backported to release-3.1, it may make sense
to not apply this change to mobile.
@personalizedrefrigerator personalizedrefrigerator changed the title Desktop: Fixes #11335: Auto-match backtick brackets Desktop: Fixes #11335: Auto-match brackets: Also match backticks Nov 8, 2024
@personalizedrefrigerator personalizedrefrigerator changed the title Desktop: Fixes #11335: Auto-match brackets: Also match backticks Desktop: Fixes #11335: Markdown editor: Auto-close backticks Nov 8, 2024
@personalizedrefrigerator personalizedrefrigerator added desktop All desktop platforms editor labels Nov 8, 2024
@laurent22 laurent22 merged commit 0876086 into laurent22:release-3.1 Nov 9, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop All desktop platforms editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants