Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[K2] Process links inside KDoc section #3449

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

vmishenev
Copy link
Contributor

No description provided.

@vmishenev vmishenev linked an issue Jan 16, 2024 that may be closed by this pull request
@vmishenev vmishenev force-pushed the vmishenev/3352-Process-links-inside-kdoc-section branch from bbf71d7 to c337854 Compare January 16, 2024 13:31
@vmishenev vmishenev force-pushed the vmishenev/3352-Process-links-inside-kdoc-section branch from c337854 to adbf6b9 Compare January 16, 2024 13:35
@@ -34,7 +34,11 @@ internal fun parseFromKDocTag(
listOf(kDocTag) + if (kDocTag.canHaveParent() && parseWithChildren) getAllKDocTags(findParent(kDocTag)) else emptyList()
DocumentationNode(
allTags.map { tag ->
val links = tag.allChildren.filterIsInstance<KDocLink>().associate { it.getLinkText() to externalDri(it) }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not collect children of children.

@vmishenev vmishenev marked this pull request as ready for review January 16, 2024 21:37
@vmishenev vmishenev merged commit 053879d into master Jan 19, 2024
9 checks passed
@vmishenev vmishenev deleted the vmishenev/3352-Process-links-inside-kdoc-section branch January 19, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[K2] Reference to class is not rendered under @constructor
3 participants