aboutsummaryrefslogtreecommitdiff
path: root/plugins/mathjax/src
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-02-11 18:29:19 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-12 13:33:10 +0100
commit519bc7969930f191fb7d9155b1c07f7e226e219f (patch)
tree60a5ceccdf81f300e66bf13e35e304130f11a440 /plugins/mathjax/src
parent1e0271e4e2888022f2ac93366c397d7315008c45 (diff)
downloaddokka-519bc7969930f191fb7d9155b1c07f7e226e219f.tar.gz
dokka-519bc7969930f191fb7d9155b1c07f7e226e219f.tar.bz2
dokka-519bc7969930f191fb7d9155b1c07f7e226e219f.zip
page merger strategy with tests
Diffstat (limited to 'plugins/mathjax/src')
-rw-r--r--plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt2
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 0f66c77c..52723157 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()