Skip to content

Commit fe13dbc

Browse files
committed
fix: ignore asterisks in links to items with names
1 parent 7a52bed commit fe13dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ string Link(string uid, bool linkFromGroupedType, bool nameOnly = false, bool li
198198
if (parent == null)
199199
return $"`{uid.Replace('{', '<').Replace('}', '>')}`";
200200
return
201-
$"[{HtmlEscape(name)}]({FileEscape($"{dots}{reference.Namespace}{(NamespaceHasTypeGrouping(parent.Namespace) ? $"/{GetTypePathPart(parent.Type)}" : "")}/{parent.Name}{extension}")}#{reference.Name.ToLower().Replace("(", "").Replace(")", "").Replace("?", "")})";
201+
$"[{HtmlEscape(name)}]({FileEscape($"{dots}{reference.Namespace}{(NamespaceHasTypeGrouping(parent.Namespace) ? $"/{GetTypePathPart(parent.Type)}" : "")}/{parent.Name}{extension}")}#{reference.Name.ToLower().Replace("(", "").Replace(")", "").Replace("?", "").Replace("*", "")})";
202202
}
203203
}
204204

0 commit comments

Comments
 (0)