aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/renderers
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-08-03 13:51:50 +0200
committerGitHub <noreply@github.com>2022-08-03 13:51:50 +0200
commit3994c42f2f2366d2e551e62412518a210581cb3a (patch)
tree8f67a972f4ae055f8e6177cf43aaf4cc1f06e5d6 /plugins/base/src/main/kotlin/renderers
parent018af7d18f50b0677a31714e29744ac2d8713c4f (diff)
downloaddokka-3994c42f2f2366d2e551e62412518a210581cb3a.tar.gz
dokka-3994c42f2f2366d2e551e62412518a210581cb3a.tar.bz2
dokka-3994c42f2f2366d2e551e62412518a210581cb3a.zip
Apply the same style to all KDoc tags, including throws/see/parameters (#2587)
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
index a28fcd04..b586b95e 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -96,6 +96,7 @@ open class HtmlRenderer(
node.dci.kind in setOf(ContentKind.Symbol) -> div("symbol $additionalClasses") {
childrenCallback()
}
+ node.hasStyle(ContentStyle.KDocTag) -> span("kdoc-tag") { childrenCallback() }
node.hasStyle(TextStyle.BreakableAfter) -> {
span { childrenCallback() }
wbr { }