1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +00:00

Amélioration générateur de liens

This commit is contained in:
Yan Maniez 2018-08-10 18:59:41 +02:00
parent 59ac8d5758
commit 7045858e6c

View file

@ -279,7 +279,16 @@ namespace AideDeJeuCmd
Console.WriteLine();
foreach (var unlinkedref in unlinkedrefs.Distinct().OrderBy(i => i))
{
Console.WriteLine($"[{unlinkedref}]: #{Helpers.IdFromName(unlinkedref)}");
var file = "";
foreach(var aanchors in allanchors)
{
if(aanchors.Value.Contains(Helpers.IdFromName(unlinkedref)))
{
file = $"{aanchors.Key}.md";
break;
}
}
Console.WriteLine($"[{unlinkedref}]: {file}#{Helpers.IdFromName(unlinkedref)}");
}
Console.WriteLine();
Console.WriteLine();