mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-31 23:45:39 +00:00
Tableaux !
This commit is contained in:
parent
dcbaa606ea
commit
125c39e730
2 changed files with 10 additions and 2 deletions
|
|
@ -188,7 +188,7 @@ namespace AideDeJeu.Tools
|
||||||
else if (block is Markdig.Extensions.Tables.Table)
|
else if (block is Markdig.Extensions.Tables.Table)
|
||||||
{
|
{
|
||||||
var tableBlock = block as 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 += "|";
|
line += "|";
|
||||||
}
|
}
|
||||||
|
if(row.IsHeader)
|
||||||
|
{
|
||||||
|
line += "\r\n|";
|
||||||
|
for(int i = 0; i < row.Count; i++)
|
||||||
|
{
|
||||||
|
line += "---|";
|
||||||
|
}
|
||||||
|
}
|
||||||
ret += line + "\r\n";
|
ret += line + "\r\n";
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<tools:HtmlNodesToFormattedStringConverter x:Key="HtmlNodesToFormattedStringConverter" />
|
<tools:HtmlNodesToFormattedStringConverter x:Key="HtmlNodesToFormattedStringConverter" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ContentPage.Resources>
|
</ContentPage.Resources>
|
||||||
<ScrollView>
|
<ScrollView VerticalScrollBarVisibility="Default" HorizontalScrollBarVisibility="Default">
|
||||||
<StackLayout Orientation="Vertical" Padding="15">
|
<StackLayout Orientation="Vertical" Padding="15">
|
||||||
<Label Text="{Binding Item.NamePHB}" Style="{StaticResource Key=subsection}" />
|
<Label Text="{Binding Item.NamePHB}" Style="{StaticResource Key=subsection}" />
|
||||||
<mdview:MarkdownView x:Name="mdNameVO" Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Item.NameVO}" />
|
<mdview:MarkdownView x:Name="mdNameVO" Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Item.NameVO}" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue