Skip to content

Commit

Permalink
Fix links in nested class summary not resolved correctly for JavaDoc …
Browse files Browse the repository at this point in the history
…format (#3674)
  • Loading branch information
MattiasBuelens authored Aug 2, 2024
1 parent 861d423 commit 3aa646a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ internal class JavadocContentToTemplateMapTranslator(
"constructors" to node.constructors.map { templateMapForFunctionNode(it) },
"signature" to templateMapForSignatureNode(node.signature),
"methods" to templateMapForClasslikeMethods(node.methods),
"classlikeDocumentation" to htmlForContentNodes(node.description, node),
"classlikeDocumentation" to htmlForContentNodes(node.description, contextNode),
"entries" to node.entries.map { templateMapForEntryNode(it) },
"properties" to node.properties.map { templateMapForPropertyNode(it) },
"classlikes" to node.classlikes.map { templateMapForNestedClasslikeNode(it) },
Expand Down Expand Up @@ -249,7 +249,7 @@ internal class JavadocContentToTemplateMapTranslator(
contextNode.children.first { (it as? JavadocClasslikePageNode)?.dri?.first() == node.dri.first() },
contextNode
).formatToEndWithHtml(),
"description" to htmlForContentNodes(node.description, node)
"description" to htmlForContentNodes(node.description, contextNode)
)
}

Expand Down

0 comments on commit 3aa646a

Please sign in to comment.