Replaced CommonMark.Net with MarkdownSharp. Smaller and a single file, so there are no Nuget dependencies.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user