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>
Version 1.1.1 - most likely #928 - broke center and right alignment for pipe tables if emojis are enabled:
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: