Skip to content

Fix escaping of special characters with backslashes#99

Merged
atulkhare4096 merged 1 commit into
microsoft:mainfrom
Dailiduzhou:fix/MissingEscapeCharacter
Apr 26, 2026
Merged

Fix escaping of special characters with backslashes#99
atulkhare4096 merged 1 commit into
microsoft:mainfrom
Dailiduzhou:fix/MissingEscapeCharacter

Conversation

@Dailiduzhou
Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes a broken Markdown table rendering in the "Common combinators cheat sheet" section.

Why is this necessary?

The pipe characters (|) used in the Rust closures (e.g., |x| x * 2) within inline code blocks were being misinterpreted by the mdBook Markdown parser as table column separators. This caused the table columns to misalign and the rendering to break for rows containing closures.

How was it fixed?

Escaped the pipe characters inside the inline code blocks to prevent the parser from treating them as structural table delimiters, ensuring the cheat sheet renders correctly.

@atulkhare4096 atulkhare4096 merged commit cda4f61 into microsoft:main Apr 26, 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