mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2026-02-06 16:43:33 +00:00
Gestion des images en markdown
This commit is contained in:
parent
7aeb7eeb7f
commit
e0c3937f95
2 changed files with 21 additions and 11 deletions
|
|
@ -109,9 +109,6 @@
|
||||||
<AppxManifest Include="Package.appxmanifest">
|
<AppxManifest Include="Package.appxmanifest">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</AppxManifest>
|
</AppxManifest>
|
||||||
<EmbeddedResource Include="..\..\Data\database.db">
|
|
||||||
<Link>Assets\database.db</Link>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<None Include="AideDeJeu.UWP_StoreKey.pfx" />
|
<None Include="AideDeJeu.UWP_StoreKey.pfx" />
|
||||||
<None Include="AideDeJeu.UWP_TemporaryKey.pfx" />
|
<None Include="AideDeJeu.UWP_TemporaryKey.pfx" />
|
||||||
<Content Include="Assets\Fonts\LinLibertine_R.ttf" />
|
<Content Include="Assets\Fonts\LinLibertine_R.ttf" />
|
||||||
|
|
|
||||||
|
|
@ -441,6 +441,14 @@ namespace AideDeJeu.Tools
|
||||||
//linkReferenceDefinition.
|
//linkReferenceDefinition.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (block is Markdig.Syntax.LinkReferenceDefinition)
|
||||||
|
{
|
||||||
|
Debug.WriteLine(block.GetType());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.WriteLine(block.GetType());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (monster != null)
|
if (monster != null)
|
||||||
{
|
{
|
||||||
|
|
@ -487,7 +495,12 @@ namespace AideDeJeu.Tools
|
||||||
else if (inline is Markdig.Syntax.Inlines.LinkInline)
|
else if (inline is Markdig.Syntax.Inlines.LinkInline)
|
||||||
{
|
{
|
||||||
var linkInline = inline as 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();
|
add = string.Empty;
|
||||||
|
if (linkInline.IsImage)
|
||||||
|
{
|
||||||
|
add = "!";
|
||||||
|
}
|
||||||
|
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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue