diff options
author | Szymon Świstun <sswistun@virtuslab.com> | 2020-02-06 15:51:07 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-02-12 13:33:10 +0100 |
commit | 1e0271e4e2888022f2ac93366c397d7315008c45 (patch) | |
tree | fa6c9726fb0b2dbb0a7eebfa4a1b968164f14d9a /plugins/mathjax/src/main/kotlin | |
parent | 2a60f8adbab66e7b671949960c7cd90ea86992d7 (diff) | |
download | dokka-1e0271e4e2888022f2ac93366c397d7315008c45.tar.gz dokka-1e0271e4e2888022f2ac93366c397d7315008c45.tar.bz2 dokka-1e0271e4e2888022f2ac93366c397d7315008c45.zip |
page merger strategy
Diffstat (limited to 'plugins/mathjax/src/main/kotlin')
-rw-r--r-- | plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt b/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt index 52723157..0f66c77c 100644 --- a/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt +++ b/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt @@ -18,7 +18,7 @@ class MathjaxPlugin : DokkaPlugin() { private const val ANNOTATION = "usesMathJax" private const val LIB_PATH = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-AMS_SVG&latest" -object MathjaxTransformer : PageNodeTransformer { +object MathjaxTransformer : PageNodeTransformer() { override fun invoke(input: RootPageNode) = input.transformContentPagesTree { it.modified( embeddedResources = it.embeddedResources + if (it.isNeedingMathjax) listOf(LIB_PATH) else emptyList() |