Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Markdown escape character is not working properly for the code block #1880

Closed

Description

@Vijay-Nirmal

I'm submitting a...

  • Bug report

Current behavior

Markdown escape character (\) is not working properly for the code block

Expected behavior

Markdown escape character (\) should be working properly for the code block

```XAML
<Grid>
```

Minimal reproduction of the problem with instructions

Try

\```XAML
\<Grid>
\```

Activity

  1. changed the title [-]Markdown escape character is not supported[/-] [+]Markdown escape character is not working properly for the code block[/+] on Mar 11, 2018
  2. nmetulev commented on Mar 15, 2018

    @nmetulev
    Contributor

    Not sure if this is a bug, rather a feature request. The parser supports escape characters but you need to escape each character. ex:

    \`\`\`XAML
    \\<Grid>
    \`\`\`
    

    cc\ @WilliamABradley

  3. Vijay-Nirmal commented on Mar 15, 2018

    @Vijay-Nirmal
    ContributorAuthor

    @nmetulev Normally, the below method is the way to escape the code block but this is not working in MarkdownParser. So this is a bug.

    \```XAML
    \<Grid>
    \```
    
  4. nmetulev commented on Mar 15, 2018

    @nmetulev
    Contributor

    I believe that is how GitHub does it, but not all markdown renderers are the same. I agree it would be great to support this as well, but not parsing exactly like GitHub does not automatically categorize this as a bug. For example, looking through the commonmark spec I don't see this as listed.

  5. locked and limited conversation to collaborators on Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions