mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 06:56:10 +00:00
Amélioration générateur de liens
This commit is contained in:
parent
59ac8d5758
commit
7045858e6c
1 changed files with 10 additions and 1 deletions
|
|
@ -279,7 +279,16 @@ namespace AideDeJeuCmd
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
foreach (var unlinkedref in unlinkedrefs.Distinct().OrderBy(i => i))
|
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();
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue