aboutsummaryrefslogtreecommitdiff
path: root/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-12-13 14:27:25 +0100
committerKamil Doległo <kamilok1965@interia.pl>2019-12-13 14:27:25 +0100
commit54f587baf12ecf8f0115cb406203df14c4d6ab5d (patch)
treee43fa42a0c10c392534a38e42a958e62e282ee91 /plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
parentdd017a44ed7baae83f4f09a92d9691231f424eaa (diff)
downloaddokka-54f587baf12ecf8f0115cb406203df14c4d6ab5d.tar.gz
dokka-54f587baf12ecf8f0115cb406203df14c4d6ab5d.tar.bz2
dokka-54f587baf12ecf8f0115cb406203df14c4d6ab5d.zip
Fix mathjax plugin for dokka to compile
Diffstat (limited to 'plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt')
-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