diff --git a/config.toml b/config.toml index 5434a25..821ae66 100644 --- a/config.toml +++ b/config.toml @@ -161,6 +161,7 @@ include_content = true [extra] katex.enabled = true katex.auto_render = true +# mathjax.enabled = true chart.enabled = true mermaid.enabled = true diff --git a/content/docs/config-options.md b/content/docs/config-options.md index 0aa60ce..01a8757 100644 --- a/content/docs/config-options.md +++ b/content/docs/config-options.md @@ -107,6 +107,15 @@ katex.enabled = true katex.auto_render = true # automatic rendering without shortcodes ``` +### MathJax + +Alternative math formula support using [MathJax](https://www.mathjax.org/). +To enable MathJax in your project, set the following in the `[extra]` section of `config.toml`: +```toml +[extra] +mathjax.enabled = true +``` + # Section Configurations Apart from standard config you can also add a `description` in your `_index.md` file for your sections that appears in listing. @@ -133,4 +142,4 @@ In order to enable `comments` for your post change as below code snippet in your ```toml [extra] comments = true -``` \ No newline at end of file +``` diff --git a/templates/base.html b/templates/base.html index 68babfd..fb5cdbb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -64,9 +64,27 @@ {% if config.extra.katex.auto_render %} - + {% endif %} {% endif %} + + {% if config.extra.mathjax.enabled %} + + + {% endif %} +