From 1e39462fa8df604a76a1f86cd88c4cdef23e3e8f Mon Sep 17 00:00:00 2001 From: Yan Maniez Date: Wed, 15 Aug 2018 02:13:29 +0200 Subject: [PATCH] =?UTF-8?q?Utilisation=20alignements=20par=20d=C3=A9faut?= =?UTF-8?q?=20markdown=20:=20header=20centr=C3=A9,=20lignes=20=C3=A0=20gau?= =?UTF-8?q?che?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs b/AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs index 38a0ea8c..75295cb4 100644 --- a/AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs +++ b/AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs @@ -462,9 +462,9 @@ Margin = 1, Padding = 5, }; - var align = tableBlock.ColumnDefinitions[left].Alignment; - var layoutOptions = align != Markdig.Extensions.Tables.TableColumnAlign.Left ? LayoutOptions.CenterAndExpand : LayoutOptions.StartAndExpand; - var textAlignment = align != Markdig.Extensions.Tables.TableColumnAlign.Left ? TextAlignment.Center : TextAlignment.Start; + //var align = tableBlock.ColumnDefinitions[left].Alignment; + var layoutOptions = row.IsHeader ? LayoutOptions.CenterAndExpand : LayoutOptions.StartAndExpand; + var textAlignment = row.IsHeader ? TextAlignment.Center : TextAlignment.Start; var label = new Label { FormattedText = CreateFormatted(par.Inline, style.FontFamily, style.Attributes, style.ForegroundColor, style.BackgroundColor, style.FontSize),