mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-16 15:19:56 +00:00
Transmission des liens dans le markdown
This commit is contained in:
parent
9289aba7be
commit
9828c9afe5
2 changed files with 20 additions and 0 deletions
|
|
@ -337,6 +337,17 @@ namespace AideDeJeu.Tools
|
||||||
monster.Wisdom = table["SAG"].FirstOrDefault();
|
monster.Wisdom = table["SAG"].FirstOrDefault();
|
||||||
monster.Charisma = table["CHA"].FirstOrDefault();
|
monster.Charisma = table["CHA"].FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
else if(block is Markdig.Syntax.LinkReferenceDefinitionGroup)
|
||||||
|
{
|
||||||
|
|
||||||
|
var linkReferenceDefinitionGroup = block as Markdig.Syntax.LinkReferenceDefinitionGroup;
|
||||||
|
|
||||||
|
foreach (var linkBlock in linkReferenceDefinitionGroup)
|
||||||
|
{
|
||||||
|
var linkReferenceDefinition = linkBlock as Markdig.Syntax.LinkReferenceDefinition;
|
||||||
|
//linkReferenceDefinition.
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (monster != null)
|
if (monster != null)
|
||||||
{
|
{
|
||||||
|
|
@ -380,6 +391,11 @@ namespace AideDeJeu.Tools
|
||||||
}
|
}
|
||||||
add = delimiterChar + emphasisInline.ToContainerString() + delimiterChar;
|
add = delimiterChar + emphasisInline.ToContainerString() + delimiterChar;
|
||||||
}
|
}
|
||||||
|
else if (inline is Markdig.Syntax.Inlines.LinkInline)
|
||||||
|
{
|
||||||
|
var linkInline = inline as Markdig.Syntax.Inlines.LinkInline;
|
||||||
|
add = string.Format($"[{linkInline.Label}]({linkInline.Url} \"{linkInline.Title}\")", linkInline.Label); //containerInline.ToContainerString();
|
||||||
|
}
|
||||||
else if (inline is Markdig.Syntax.Inlines.ContainerInline)
|
else if (inline is Markdig.Syntax.Inlines.ContainerInline)
|
||||||
{
|
{
|
||||||
var containerInline = inline as Markdig.Syntax.Inlines.ContainerInline;
|
var containerInline = inline as Markdig.Syntax.Inlines.ContainerInline;
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,10 @@
|
||||||
<!--<Label FormattedText="{Binding Item.Actions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.Actions, Converter={StaticResource NullToFalseConverter}}" />-->
|
<!--<Label FormattedText="{Binding Item.Actions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.Actions, Converter={StaticResource NullToFalseConverter}}" />-->
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Item.Actions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.Actions, Converter={StaticResource NullToFalseConverter}}" />
|
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Item.Actions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.Actions, Converter={StaticResource NullToFalseConverter}}" />
|
||||||
|
|
||||||
|
<Label Text="Réactions" Style="{StaticResource Key=subsubsection}" IsVisible="{Binding Item.Reactions, Converter={StaticResource NullToFalseConverter}}" />
|
||||||
|
<!--<Label FormattedText="{Binding Item.Reactions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.Reactions, Converter={StaticResource NullToFalseConverter}}" />-->
|
||||||
|
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Item.Reactions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.Reactions, Converter={StaticResource NullToFalseConverter}}" />
|
||||||
|
|
||||||
<Label Text="Actions légendaires" Style="{StaticResource Key=subsubsection}" IsVisible="{Binding Item.LegendaryActions, Converter={StaticResource NullToFalseConverter}}" />
|
<Label Text="Actions légendaires" Style="{StaticResource Key=subsubsection}" IsVisible="{Binding Item.LegendaryActions, Converter={StaticResource NullToFalseConverter}}" />
|
||||||
<!--<Label FormattedText="{Binding Item.LegendaryActions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.LegendaryActions, Converter={StaticResource NullToFalseConverter}}" />-->
|
<!--<Label FormattedText="{Binding Item.LegendaryActions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.LegendaryActions, Converter={StaticResource NullToFalseConverter}}" />-->
|
||||||
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Item.LegendaryActions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.LegendaryActions, Converter={StaticResource NullToFalseConverter}}" />
|
<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding Item.LegendaryActions, Converter={StaticResource HtmlNodesToFormattedStringConverter}}" IsVisible="{Binding Item.LegendaryActions, Converter={StaticResource NullToFalseConverter}}" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue