1
0
mirror of https://github.com/typemill/typemill.git synced 2025-10-18 16:16:08 +02:00

Version 1.2.15: Beautiful Math Refactored

This commit is contained in:
Trendschau
2019-06-04 17:07:11 +02:00
parent 3bcc03e5fb
commit 3fce3a5c61
36 changed files with 727 additions and 253 deletions

View File

@@ -37,8 +37,11 @@ class Math extends Plugin
$this->addJS('/math/public/auto-render.min.js');
$this->addCSS('/math/public/katex.min.css');
/* initialize autorendering of page */
$this->addInlineJs('renderMathInElement(document.body);');
}
/* initialize autorendering of page only in frontend */
if (strpos($this->getPath(), 'tm/content') === false)
{
$this->addInlineJs('renderMathInElement(document.body);');
}
}
}
}

View File

@@ -1,5 +1,5 @@
name: Math
version: 1.0.1
version: 1.0.2
description: Adds support for katex and mathjax.
author: Sebastian Schürmanns
homepage: https://mathjax.org/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long