From 54f587baf12ecf8f0115cb406203df14c4d6ab5d Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Fri, 13 Dec 2019 14:27:25 +0100 Subject: Fix mathjax plugin for dokka to compile --- plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugins/mathjax/src/main/kotlin') 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() + .let { true } +// .any { it.name.contains("ref") && it.root.children.any {it.name} } + + } \ No newline at end of file -- cgit