Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GridTable - invalid output (and/or parse) #743

Open
detoxhby opened this issue Oct 3, 2023 · 0 comments
Open

GridTable - invalid output (and/or parse) #743

detoxhby opened this issue Oct 3, 2023 · 0 comments

Comments

@detoxhby
Copy link

detoxhby commented Oct 3, 2023

Since v28.0 the gridtable outputs invalid format. Every version were checked and it works properly up to v27.0.

The source is parsed with Markdown.Parse(rawsource, pipeline); where pipeline is configured with:

var pipeline = new MarkdownPipelineBuilder()
    .UseAutoLinks()
    .UseEmphasisExtras()
    .UseListExtras()
    .EnableTrackTrivia() // NOTE: trackTrivia is necessary to preserve original whitespaces
    .Build();

Since this is a common use-case we would like to find the root cause of the problem. If you need any debug information, let me know!

Source (parsed)

+---------------+---------------+--------------------+
| Fruit         | Price         | Advantages         |
+===============+===============+====================+
| Bananas       | first line    | first line         |
|               | next line     | next line          |
+---------------+---------------+--------------------+
| Bananas       | first line\   | first line\        |
|               | next line     | next line          |
+---------------+---------------+--------------------+

Output with v27.0 (good)

+---------------+---------------+--------------------+
| Fruit         | Price         | Advantages         |
+===============+===============+====================+
| Bananas       | first line    | first line         |
|               | next line     | next line          |
+---------------+---------------+--------------------+
| Bananas       | first line\   | first line\        |
|               | next line     | next line          |
+---------------+---------------+--------------------+

Output with v28.0 to v33.0 (bad)

+---------------+---------------+--------------------+
| Fruit         | Price         | Advantages         |
+===============+=+====================+
| Bananas       | first line    | first line         |
|               | next line     | next line          |
+---------------+---------------+--------------------+
| Bananas       | first line\   | first line\        |
|               | next line     | next line          |
+---------------+---------------+--------------------+==============
Repository owner deleted a comment Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants