From 2ef47c8162db71095dad57fa218d82cdb43fb684 Mon Sep 17 00:00:00 2001 From: Yufei Huang Date: Mon, 17 Jul 2023 11:14:11 +0800 Subject: [PATCH] fix: see/seealso tag checks descendant inner text --- src/Docfx.Dotnet/Resources/XmlCommentTransform.xsl | 4 ++-- test/Docfx.Dotnet.Tests/XmlCommentUnitTest.cs | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Docfx.Dotnet/Resources/XmlCommentTransform.xsl b/src/Docfx.Dotnet/Resources/XmlCommentTransform.xsl index 236d49c7383..1bbe69ef486 100644 --- a/src/Docfx.Dotnet/Resources/XmlCommentTransform.xsl +++ b/src/Docfx.Dotnet/Resources/XmlCommentTransform.xsl @@ -28,7 +28,7 @@ - + @@ -37,7 +37,7 @@ - + diff --git a/test/Docfx.Dotnet.Tests/XmlCommentUnitTest.cs b/test/Docfx.Dotnet.Tests/XmlCommentUnitTest.cs index 1a6f0447d24..875db25cd76 100644 --- a/test/Docfx.Dotnet.Tests/XmlCommentUnitTest.cs +++ b/test/Docfx.Dotnet.Tests/XmlCommentUnitTest.cs @@ -42,6 +42,13 @@ public static void Issue4165() Assert.Equal("arg1", comment.Parameters["args"]); } + [Fact] + public static void Issue8965() + { + Verify("See also on MDN", "\n See also on MDN\n"); + Verify("See also on MDN", "\n See also on MDN\n"); + } + [Fact] public static void BasicCodeBlock() {