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:
@@ -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);');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -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/
|
||||
|
2
plugins/math/public/katex.min.css
vendored
2
plugins/math/public/katex.min.css
vendored
File diff suppressed because one or more lines are too long
2
plugins/math/public/katex.min.js
vendored
2
plugins/math/public/katex.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user