Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update TocBuilder.cs
  • Loading branch information
SimonCropp committed Jan 13, 2026
commit b021541235d6fc69f67a714a361b169bf1f1df74
6 changes: 2 additions & 4 deletions src/MarkdownSnippets/Processing/TocBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ public static string BuildToc(List<Line> headerLines, int level, List<string> to
headingCount++;

var link = BuildLink(processed, title);
var indent = new string(' ', (headerLevel - 1) * 2);
Polyfill.Append(
builder,
$"{indent}* [{title}](#{link})");
builder.Append(' ', (headerLevel - 1) * 2);
Polyfill.Append(builder, $"* [{title}](#{link})");
builder.Append(newLine);
}

Expand Down