Skip to content

Commit

Permalink
【Style】KaTeX.php代码格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
LuRenJiasWorld committed Sep 17, 2020
1 parent c88e07b commit d190765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App/KaTeX.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function katex_markup_single($content) {
%ix';

// 简易版本,可能存在误判,但尽可能简单,以避免上面这个LaTeX引起的性能问题
$regexTeXMultilineLite = '/\$[\S\ ]+?\$/ix';
$regexTeXMultilineLite = "/\$[\S\ ]+?\$/ix";

$content = preg_replace_callback($regexTeXMultilineLite, array($this, "katex_src_replace"), $content);

Expand Down Expand Up @@ -313,4 +313,4 @@ public function katex_wp_footer_scripts() {
</script>
<?php
}
}
}

0 comments on commit d190765

Please sign in to comment.