diff --git a/readme.md b/readme.md index e0ebf034..e26dd16d 100644 --- a/readme.md +++ b/readme.md @@ -156,7 +156,6 @@ If a line is `toc` it will be replaced with a table of contents So if a markdown document contains the following: - ```txt # Title @@ -170,13 +169,12 @@ Text1 Text2 ``` -[snippet source](/docs/mdsource/toc/tocBefore.txt#L1-L11) [anchor](snippet-/docs/mdsource/toc/tocBefore.txt-tocBefore.txt-txt) +[snippet source](/docs/mdsource/toc/tocBefore.txt#L1-L11) The result will be rendered: - ```txt # Title @@ -195,7 +193,7 @@ Text1 Text2 ``` -[snippet source](/docs/mdsource/toc/tocAfter.txt#L1-L16) [anchor](snippet-/docs/mdsource/toc/tocAfter.txt-tocAfter.txt-txt) +[snippet source](/docs/mdsource/toc/tocAfter.txt#L1-L16) @@ -223,14 +221,13 @@ mdsnippets --toc-excludes heading1:heading2 When a .md file is written, a header is include. The default header is: - ```txt GENERATED FILE - DO NOT EDIT This file was generated by [MarkdownSnippets](https://github.com/SimonCropp/MarkdownSnippets). Source File: {relativePath} To change this file edit the source file and then run MarkdownSnippets. ``` -[snippet source](/src/Tests/HeaderWriterTests.DefaultHeader.approved.txt#L1-L4) [anchor](snippet-/src/Tests/HeaderWriterTests.DefaultHeader.approved.txt-HeaderWriterTests.DefaultHeader.approved.txt-txt) +[snippet source](/src/Tests/HeaderWriterTests.DefaultHeader.approved.txt#L1-L4) To disable the header use `--write-header` @@ -257,7 +254,6 @@ mdsnippets --header "GENERATED FILE\nSource File: {relativePath}" Defines the format of `snippet source` links that appear under each snippet. - ```cs namespace MarkdownSnippets { @@ -268,11 +264,10 @@ namespace MarkdownSnippets } } ``` -[snippet source](/src/MarkdownSnippets/Processing/LinkFormat.cs#L1-L8) [anchor](snippet-/src/MarkdownSnippets/Processing/LinkFormat.cs-LinkFormat.cs-cs) +[snippet source](/src/MarkdownSnippets/Processing/LinkFormat.cs#L1-L8) - ```cs if (linkFormat == LinkFormat.GitHub) { @@ -283,7 +278,7 @@ if (linkFormat == LinkFormat.Tfs) return $"{path}&line={snippet.StartLine}&lineEnd={snippet.EndLine}"; } ``` -[snippet source](/src/MarkdownSnippets/Processing/SnippetMarkdownHandling.cs#L64-L73) [anchor](snippet-/src/MarkdownSnippets/Processing/SnippetMarkdownHandling.cs-buildlink-cs) +[snippet source](/src/MarkdownSnippets/Processing/SnippetMarkdownHandling.cs#L50-L59)