aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorvmishenev <vad-mishenev@yandex.ru>2021-09-27 13:43:07 +0300
committerGitHub <noreply@github.com>2021-09-27 13:43:07 +0300
commit1b1b5e70f9220a49801729aff5e43883014fe1d4 (patch)
treeab28f45bd4641df05698f82eb07555094230a287 /plugins/base/src/main/kotlin
parentbcdb4366a55a25ddd1314cbf79ab27a8006c160c (diff)
downloaddokka-1b1b5e70f9220a49801729aff5e43883014fe1d4.tar.gz
dokka-1b1b5e70f9220a49801729aff5e43883014fe1d4.tar.bz2
dokka-1b1b5e70f9220a49801729aff5e43883014fe1d4.zip
Fix `img` tag in javadoc (#2166)
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt5
1 files changed, 5 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 ecf31541..d74a1ca4 100644
--- a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt
@@ -377,6 +377,11 @@ class JavadocParser(
"strong" -> ifChildrenPresent { Strong(children) }
"index" -> listOf(Index(children))
"i" -> ifChildrenPresent { I(children) }
+ "img" -> listOf(
+ Img(
+ children,
+ element.attributes().associate { (if (it.key == "src") "href" else it.key) to it.value })
+ )
"em" -> listOf(Em(children))
"code" -> ifChildrenPresent { if(keepFormatting) CodeBlock(children) else CodeInline(children) }
"pre" -> if(children.size == 1) {