Replaced CommonMark.Net with MarkdownSharp. Smaller and a single file, so there are no Nuget dependencies.

This commit is contained in:
2018-03-23 08:23:39 +01:00
parent 715e93985d
commit 6fafdd3090
10 changed files with 1812 additions and 54 deletions

View File

@ -9,7 +9,7 @@ namespace KattekerCreator
public PathFragments(string path)
{
_fragments = path.Split(Path.PathSeparator);
_fragments = path.Split(Path.DirectorySeparatorChar);
}
public int FragmentLength => _fragments.Length;
@ -18,7 +18,7 @@ namespace KattekerCreator
public override int GetHashCode() => (_fragments != null ? _fragments.GetHashCode() : 0);
public override string ToString() => string.Join(Path.PathSeparator.ToString(), _fragments.Take(_fragments.Length - 1));
public override string ToString() => string.Join(Path.DirectorySeparatorChar.ToString(), _fragments.Take(_fragments.Length - 1));
protected bool Equals(PathFragments other) => Equals(_fragments, other._fragments);
}