| @@ -74,13 +74,9 @@ namespace MarkdownDeep | |||||
| { | { | ||||
| url = linkProcessor(url); | url = linkProcessor(url); | ||||
| } | } | ||||
| else | |||||
| if (Uri.TryCreate(url, UriKind.Relative, out var uri)) | |||||
| { | { | ||||
| Uri uri; | |||||
| if (Uri.TryCreate(url, UriKind.Relative, out uri)) | |||||
| { | |||||
| url = String.Concat(url.Substring(0, index), ".htm", url.Substring(index + ".md".Length)); | |||||
| } | |||||
| url = String.Concat(url.Substring(0, index), ".htm", url.Substring(index + ".md".Length)); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -2,8 +2,8 @@ | |||||
| This is some text with a snippet. | This is some text with a snippet. | ||||
| @snippet cs [c:\temp\AutoHeaderIDTests.cs] SetUp | |||||
| @snippet cs [.\AutoHeaderIDTests.cs] SetUp | |||||
| @snippet cs [c:\temp\AutoHeaderIDTests.cs] =WithPunctuation | |||||
| @snippet cs [.\AutoHeaderIDTests.cs] =WithPunctuation | |||||
| post | post | ||||