Skip to content

Bug with Markdown Parser: Table Cell with Escaped Pipe #3121

@Hosch250

Description

@Hosch250

Describe the bug

Markdown parser--table cell generating \| for an escaped pipe instead of |.

Steps to Reproduce

Steps to reproduce the behavior:
This table:

| Input | Output |
|--|--|
|`{true \|\| true}`|`true`|
|`{true \|\| false}`|`true`|
|`{false \|\| true}`|`true`|
|`{false \|\| false}`|`false`|

Now correctly parses as 2 cells instead of 4, per my change for #2968. However, I forgot to make it remove the \ token from the parsed output, so the inline value contains \|\| instead of just ||.

Expected behavior

The \ character should not be displayed in the inline element.

Workaround:

This issue is easy to work around by replacing all \| with | when in a table cell context.

Environment


Package Version(s): 6.0.0

Windows 10 Build Number: Irrelevant
App min and target version: Irrelevant
Device form factor: Irrelevant
Visual Studio : All

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛An unexpected issue that highlights incorrect behaviormarkdown 📑Issues related to Markdown

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions