diff options
Diffstat (limited to 'plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt')
-rw-r--r-- | plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt b/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt index ff3e83a3..9b3c25c2 100644 --- a/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt +++ b/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt @@ -1,5 +1,6 @@ package org.jetbrains.dokka.mathjax +import model.doc.CustomTag import org.jetbrains.dokka.CoreExtensions import org.jetbrains.dokka.pages.ModulePageNode import org.jetbrains.dokka.pages.PageNode @@ -29,7 +30,11 @@ object MathjaxTransformer : PageNodeTransformer { private val PageNode.isNeedingMathjax get() = documentable?.platformInfo - ?.flatMap { it.docTag?.children?.toList().orEmpty() } + ?.flatMap { it.documentationNode.children } .orEmpty() - .any { it.text == ANNOTATION } + .filterIsInstance<CustomTag>() + .let { true } +// .any { it.name.contains("ref") && it.root.children.any {it.name} } + + }
\ No newline at end of file |