Skip to content

Commit 6cab57b

Browse files
committed
Only need to render top-level elements as markdown
1 parent 5d67f3a commit 6cab57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenStackNetAnalyzers/OpenStackNetAnalyzers/RenderAsMarkdownCodeFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private async Task<Document> CreateChangedDocument(CodeFixContext context, Docum
8383
SyntaxTrivia leadingTrivia = SyntaxFactory.DocumentationCommentExterior(leadingTriviaBuilder.ToString());
8484

8585
DocumentationCommentTriviaSyntax contentsOnly = RemoveExteriorTrivia(documentationCommentTriviaSyntax);
86-
contentsOnly = contentsOnly.ReplaceNodes(contentsOnly.DescendantNodes(), RenderBlockElementAsMarkdown);
86+
contentsOnly = contentsOnly.ReplaceNodes(contentsOnly.ChildNodes(), RenderBlockElementAsMarkdown);
8787
string renderedContent = contentsOnly.Content.ToFullString();
8888
string[] lines = renderedContent.Split(new[] { "\r\n", "\n" }, StringSplitOptions.None);
8989
SyntaxList<XmlNodeSyntax> newContent = XmlSyntaxFactory.List();

0 commit comments

Comments
 (0)