Skip to content

Commit

Permalink
Merge branch 'main' into avoid-multi-enumeration-warnings-in-TryGetSt…
Browse files Browse the repository at this point in the history
…ringBeforeChars
  • Loading branch information
yufeih authored Nov 7, 2024
2 parents 6e79b7c + 2375701 commit 7b46e2f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4,612 deletions.
1 change: 0 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="FluentAssertions" Version="6.12.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="PublicApiGenerator" Version="11.1.0" />
<PackageVersion Include="Verify.DiffPlex" Version="3.1.2" />
<PackageVersion Include="Verify.Xunit" Version="28.1.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/links-and-cross-references.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ You can create a cross link with following options:
- `displayProperty`: the property of display text when the cross reference is has resolved correctly.

e.g.: `<a href="xref:System.String?displayProperty=fullName"/>` will be resolved as <a href="xref:System.String?displayProperty=fullName"/>.

e.g.: `<a href="xref:System.String.Length?displayProperty=nameWithType"/>` will be resolved as <a href="xref:System.String.Length?displayProperty=nameWithType"/>.
- `altProperty`: the property of display text when the cross reference does not have a `href` property.

e.g.: ``<xref href="System.Collections.Immutable.ImmutableArray`1" altProperty="name"/>`` will be resolved as <xref href="System.Collections.Immutable.ImmutableArray`1" altProperty="name"/>.
Expand Down
3 changes: 1 addition & 2 deletions src/Docfx.Dotnet/Parsers/XmlComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ private XmlComment(string xml, XmlCommentParserContext context)
else
xml = $"<member><summary>{innerXml}</summary></member>";
}

// Workaround: https://github.com/dotnet/roslyn/pull/66668
if (!xml.StartsWith("<member", StringComparison.Ordinal) && !xml.EndsWith("</member>", StringComparison.Ordinal))
else if (!xml.StartsWith("<member", StringComparison.Ordinal) && !xml.EndsWith("</member>", StringComparison.Ordinal))
{
xml = $"<member>{xml}</member>";
}
Expand Down
Loading

0 comments on commit 7b46e2f

Please sign in to comment.