Skip to content

[lexical-markdown] Code backslash fix#7958

Merged
etrepum merged 2 commits intofacebook:mainfrom
MarekKuncik:code_backslash_fix
Oct 30, 2025
Merged

[lexical-markdown] Code backslash fix#7958
etrepum merged 2 commits intofacebook:mainfrom
MarekKuncik:code_backslash_fix

Conversation

@MarekKuncik
Copy link
Copy Markdown
Contributor

@MarekKuncik MarekKuncik commented Oct 29, 2025

Description

Inserting a backslash \ before or after closing backtick ( e.g. test\ or test\ ) breaks code text formatting.

Closes #

Test plan

Before

Backslash before closing backtick

chrome-capture-2025-10-29

Backslash after closing backtick

chrome-capture-2025-10-29 (2)


After

Backslash before closing backtick

chrome-capture-2025-10-29 (3)

Backslash after closing backtick

chrome-capture-2025-10-29 (4)

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 29, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Oct 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Oct 29, 2025 1:45pm
lexical-playground Ready Ready Preview Comment Oct 29, 2025 1:45pm

@fantactuka
Copy link
Copy Markdown
Collaborator

A bit surprising it behaves differently for other inlines styles (code vs italic), thanks for fixing!

@etrepum etrepum added this pull request to the merge queue Oct 30, 2025
Merged via the queue into facebook:main with commit 34cab58 Oct 30, 2025
43 checks passed
@etrepum etrepum mentioned this pull request Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants