CommonMark.NET
This commit is contained in:
parent
11293968b8
commit
c6c2ff6960
2
Adaptation/.vscode/launch.json
vendored
2
Adaptation/.vscode/launch.json
vendored
@ -4,7 +4,7 @@
|
||||
"name": ".NET Core Attach",
|
||||
"type": "coreclr",
|
||||
"request": "attach",
|
||||
"processId": 11456
|
||||
"processId": 25140
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -325,7 +325,11 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
|
||||
private static void WriteMarkdownFile(FileConnectorConfiguration fileConnectorConfiguration, string[] alternateTargetFolders, ReadOnlyCollection<WorkItem> workItems, ReadOnlyCollection<string> workItemTypes)
|
||||
{
|
||||
string old;
|
||||
string html;
|
||||
string text;
|
||||
string json;
|
||||
string checkFile;
|
||||
string? pathRoot;
|
||||
List<char> spaces = new();
|
||||
List<string> lines = new();
|
||||
@ -356,7 +360,16 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
foreach (string workItemType in workItemTypes)
|
||||
{
|
||||
AppendLines(spaces, lines, workItemAndChildren, workItemType);
|
||||
File.WriteAllText(Path.Combine(alternateTargetFolder, $"{workItemType}.md"), string.Join(Environment.NewLine, lines));
|
||||
checkFile = Path.Combine(alternateTargetFolder, $"{workItemType}.md");
|
||||
text = string.Join(Environment.NewLine, lines);
|
||||
old = !File.Exists(checkFile) ? string.Empty : File.ReadAllText(checkFile);
|
||||
if (text != old)
|
||||
File.WriteAllText(checkFile, text);
|
||||
checkFile = Path.Combine(alternateTargetFolder, $"{workItemType}.html");
|
||||
html = CommonMark.CommonMarkConverter.Convert(text);
|
||||
old = !File.Exists(checkFile) ? string.Empty : File.ReadAllText(checkFile);
|
||||
if (html != old)
|
||||
File.WriteAllText(checkFile, html);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,6 +36,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.2" />
|
||||
<PackageReference Include="CommonMark.NET" Version="0.15.1" />
|
||||
<PackageReference Include="FFMpegCore" Version="5.1.0" />
|
||||
<PackageReference Include="IKVM.AWT.WinForms" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
|
||||
<PackageReference Include="IKVM.OpenJDK.Core" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
|
||||
|
@ -193,6 +193,9 @@
|
||||
<None Include="Adaptation\FileHandlers\json\StaticSite\json\data.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommonMark.NET">
|
||||
<Version>0.15.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Infineon.EAF.Runtime">
|
||||
<Version>2.57.0</Version>
|
||||
</PackageReference>
|
||||
|
Loading…
x
Reference in New Issue
Block a user