From 176b7354496a9135646ba9fc81976711d4de62c3 Mon Sep 17 00:00:00 2001 From: Andrea Falcone <1848683+asfalcone@users.noreply.github.com> Date: Tue, 8 Feb 2022 11:50:46 -0500 Subject: Add support for header tags in Javadoc (#2345) --- plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/base/src/main') 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())) } } -- cgit