Skip to content

Commit

Permalink
Merge pull request #711 from havit/feature/FixCorruptedRenderingOfLin…
Browse files Browse the repository at this point in the history
…ksContainingStandardBraces

[doc] Corrupted rendering of AnchorFragmentNavigationAutomationMode.Manual member #692
  • Loading branch information
hakenr authored Dec 28, 2023
2 parents bbffd43 + 9453c54 commit 5ab456e
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 5ab456e

Please sign in to comment.