src/Microsoft.DocAsCode.HtmlToPdf/PdfOptions.cs
/// <summary>
/// If the path only with '/' or null or empty, will skip and return empty. Others will trim and return with as 'a/'
/// </summary>
/// <param name="path">the path</param>
/// <returns>the normalized path</returns>
If the path only with '/' or null or empty, will skip and return empty. Others will trim and return with as 'a/'
If the path only with ' / ' or null or empty will skip and return empty . Others will trim and return with as ' a / '
private string Normalize(string path)
        {
            if (string.IsNullOrEmpty(path))
            {
                return string.Empty;
            }
            path = path.Trim('/');
            return path == string.Empty ? path : path + "/";
        }
private string Normalize ( string path ) { if ( string . IsNullOrEmpty ( path ) ) { return string . Empty ; } path = path . Trim ( ' ' ) ; return path == string . Empty ? path : path + " " ; }
If the path only with '/' or null or empty, will skip and return empty.
If the path only with ' / ' or null or empty will skip and return empty .
the normalized path
the normalized path
path
string
None