Skip to content

Commit

Permalink
[doc] Corrupted rendering of AnchorFragmentNavigationAutomationMode.M…
Browse files Browse the repository at this point in the history
…anual member #692
  • Loading branch information
Harvey1214 committed Dec 22, 2023
1 parent 8155490 commit 9453c54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Havit.Blazor.Documentation/Model/MemberModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected string TryFormatComment(string comment, Type enclosingType = null)
link = PrepareLinkForFullLinkGeneration(link);
string[] splitLink = link.Split('.');

regex = new("cref=\"([A-Za-z\\.:`\\d])+\" ?/>"); // find this part of the element (beggining already replaced): cref="P:System.Text.Regex.Property" />
regex = new("cref=\"([A-Za-z()\\.:`\\d])+\" ?/>"); // find this part of the element (beggining already replaced): cref="P:System.Text.Regex.Property" />
comment = regex.Replace(comment, GenerateFullLink(splitLink, link), 1); // replace the above with a generated link to the documentation
}
}
Expand Down Expand Up @@ -199,6 +199,7 @@ private string GenerateHavitDocumentationLink(string[] splitLink)
fullLink = $"href=\"/types/{fullLink}";
}
fullLink += $"\">{seeName}</a></code>";

return fullLink;
}

Expand Down

0 comments on commit 9453c54

Please sign in to comment.