Skip to content

[Bug] Pipe tables do not render escaped code correctly #11083

Description

@rwrife

Describe the bug
Pipe tables are not rendering code block regex correctly, based on the vscode, github and other markdown viewer experiences. Escaped characters are not getting escaped.

To Reproduce
Create a markdown file with this content:

| name | regex |
|-------------|---------|
| test | `^\d{3}-\d{3}-\d{3}-\d{3}$\|^\d{3}-\d{3}-\d{3}-\d{5}$` | 

Expected behavior
The regex output should not show $\| for example the correct output should look like:

Image

Context (please complete the following information):

  • OS: Windows
  • Docfx version: 2.78.4

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions