Compare commits

..

No commits in common. "bb37fc62bdcd91f4c721eed1e94d8130375c7aaf" and "1dcebd4fc56ab0d6b61714ae32df61bc53694842" have entirely different histories.

View File

@ -24,7 +24,7 @@ class TextFormatterLatexMathML extends Textformatter {
'title' => 'LatexMathML Text Formatter',
'version' => '0.9.1',
'summary' => 'Replaces $latexformula$ with inline MathML',
'author' => '7u83',
'author' = '7u83',
'autoload' => true,
'singular' => true,
'href' => 'https://git.planix.org/7u83/processwire-TextformatterLatexMathML',
@ -65,8 +65,6 @@ class TextFormatterLatexMathML extends Textformatter {
// unescape esaped $-signs
$modifiedValue = str_replace('\$', '$',$modifiedValue);
$modifiedValue = str_replace('&','&',$modifiedValue);
// Save the node and its modified content for later replacement
$nodesForReplacement[] = array(
'node' => $node,
@ -92,7 +90,6 @@ class TextFormatterLatexMathML extends Textformatter {
// Define a callback function to convert the matched formula to MathML
function convertToMathML($matches) {
$cache = wire('cache');
# $cache->deleteAll();
// $matches[1] contains the matched substring within '$'
$formula = $matches[1];