Skip to content

Bug with Markdown Parser: Table Cell #2968

@Hosch250

Description

@Hosch250

I'm submitting a...

Bug report (I searched for similar issues and did not find one)

Current behavior

For the markdown parser, this table parses the data lines as 4 cells, when it should just be 2:

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

Expected behavior

It should parse these lines as 2 cells, since the | table cell character is escaped. GitHub's markdown parser handles this correctly:

Input Output
{true || true} true
{true || false} true
{false || true} true
{false || false} false

Minimal reproduction of the problem with instructions

Simply parse the table listed above (not surrounded by code blocks).

Environment

Nuget Package(s): Microsoft.Toolkit.Parsers - https://www.nuget.org/packages/Microsoft.Toolkit.Parsers/

Package Version(s): 5.1.1

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 behaviorcontrols 🎛️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions