Skip to content

[Regression] Centered and right aligned tables broken since 1.1.1 #943

Closed

Description

@skrysm

Version 1.1.1 - most likely #928 - broke center and right alignment for pipe tables if emojis are enabled:

    [Fact]
    public void Test()
    {
        const string MARKDOWN = @"
Doppelpunkte können verwendet werden, um Spalten auszurichten.

| Name (linksbündig) | Land        | Beruf (zentriert)   | Alter (rechtsbündig) |
| ------------------ | ----------- |:-------------------:| --------------------:|
| John               | USA         | Anwalt              | 30                   |
| Celine             | Kanada      | Steuerberater       | 25                   |
";

        var pipelineBuilder = new MarkdownPipelineBuilder();

        pipelineBuilder
            .UsePipeTables()
            .UseEmojiAndSmiley()
            ;

        var pipeline = pipelineBuilder.Build();

        var html = Markdown.ToHtml(MARKDOWN, pipeline); // Just to see the resulting HTML in a debugger

        var document = Markdown.Parse(MARKDOWN, pipeline);

        document[1].ShouldBeOfType<Table>();
    }

Up until version 1.1.0 this test succeeds and the second block in the document is a Table.

Starting with version 1.1.1 (up until the current version), this test fails because the second block is now a ParagraphBlock.

This is the HTML rendered since 1.1.1:

<p>Doppelpunkte können verwendet werden, um Spalten auszurichten.</p>
<p>| Name (linksbündig) | Land        | Beruf (zentriert)   | Alter (rechtsbündig) |
| ------------------ | ----------- |:-------------------😐 --------------------😐
| John               | USA         | Anwalt              | 30                   |
| Celine             | Kanada      | Steuerberater       | 25                   |</p>

Activity

  1. xoofx commented on Jun 18, 2026

    @xoofx
    Owner

    Hopefully fixed via fc70523

  2. skrysm commented on Jun 19, 2026

    @skrysm
    Author

    Yes, it works again. Thanks for the quick fix. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions