aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt9
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