/ plugins Public
localkatex: Raw shortcode display in README
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Kwpolska committed Sep 19, 2017
1 parent 93ea09a commit 546de1ed2251f63e8245979a319bf4b3973ec962
Showing 1 changed file with 4 additions and 4 deletions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
@@ -13,15 +13,15 @@ You may also edit math_helper.tmpl to remove the KaTeX JavaScript includes

Inline:

Euler’s formula: {{% lmath %}}e^{ix} = \cos x + i\sin x{{% /lmath %}}
Euler’s formula: {{% raw %}}{{% lmath %}}e^{ix} = \cos x + i\sin x{{% /lmath %}}{{% /raw %}}

Display:

{{% lmath display=true %}}\int \frac{dx}{1+ax}=\frac{1}{a}\ln(1+ax)+C{{% /lmath %}}
{{% lmathd %}}\int \frac{dx}{1+ax}=\frac{1}{a}\ln(1+ax)+C{{% /lmathd %}}
{{% raw %}}{{% lmath display=true %}}\int \frac{dx}{1+ax}=\frac{1}{a}\ln(1+ax)+C{{% /lmath %}}{{% /raw %}}
{{% raw %}}{{% lmathd %}}\int \frac{dx}{1+ax}=\frac{1}{a}\ln(1+ax)+C{{% /lmathd %}}{{% /raw %}}

Alternate name:

{{% localkatex %}}e^{ix} = \cos x + i\sin x{{% /localkatex %}}
{{% raw %}}{{% localkatex %}}e^{ix} = \cos x + i\sin x{{% /localkatex %}}{{% /raw %}}

The following options are supported: displayMode, display (alias), throwOnError, errorColor, colorIsTextColor — see [KaTeX docs](https://github.com/Khan/KaTeX#rendering-options) for details.