1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 06:56:10 +00:00

Tableaux !

This commit is contained in:
Nioux 2018-06-27 13:14:55 +02:00
parent dcbaa606ea
commit 125c39e730
2 changed files with 10 additions and 2 deletions

View file

@ -188,7 +188,7 @@ namespace AideDeJeu.Tools
else if (block is Markdig.Extensions.Tables.Table)
{
var tableBlock = block as Markdig.Extensions.Tables.Table;
spell.DescriptionHtml += tableBlock.ToMarkdownString();
spell.DescriptionHtml += "\r\n\r\n" + tableBlock.ToMarkdownString().Replace("\n","") + "\r\n\r\n";
}
@ -563,6 +563,14 @@ namespace AideDeJeu.Tools
}
line += "|";
}
if(row.IsHeader)
{
line += "\r\n|";
for(int i = 0; i < row.Count; i++)
{
line += "---|";
}
}
ret += line + "\r\n";
}
return ret;

View file

@ -13,7 +13,7 @@
<tools:HtmlNodesToFormattedStringConverter x:Key="HtmlNodesToFormattedStringConverter" />
</ResourceDictionary>
</ContentPage.Resources>
<ScrollView>
<ScrollView VerticalScrollBarVisibility="Default" HorizontalScrollBarVisibility="Default">
<StackLayout Orientation="Vertical" Padding="15">
<Label Text="{Binding Item.NamePHB}" Style="{StaticResource Key=subsection}" />
<mdview:MarkdownView x:Name="mdNameVO" Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Item.NameVO}" />