aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorAndrea Falcone <1848683+asfalcone@users.noreply.github.com>2022-02-08 11:50:46 -0500
committerGitHub <noreply@github.com>2022-02-08 19:50:46 +0300
commit176b7354496a9135646ba9fc81976711d4de62c3 (patch)
tree3b1092fabca8fc1c3c59e7fba04242adeb57e01a /plugins/base/src/main
parenta3baeaded708f2cd4d174f1d412c25d88b14b9a5 (diff)
downloaddokka-176b7354496a9135646ba9fc81976711d4de62c3.tar.gz
dokka-176b7354496a9135646ba9fc81976711d4de62c3.tar.bz2
dokka-176b7354496a9135646ba9fc81976711d4de62c3.zip
Add support for header tags in Javadoc (#2345)
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt
index fd8a49c8..13d17f52 100644
--- a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt
@@ -421,6 +421,9 @@ class JavadocParser(
parsed
}
}
+ "h1" -> ifChildrenPresent { H1(children) }
+ "h2" -> ifChildrenPresent { H2(children) }
+ "h3" -> ifChildrenPresent { H3(children) }
else -> listOf(Text(body = element.ownText()))
}
}