faviconv-noREADME|ARCHIVES|CATEGORIES|SEARCH|
«Mon Mar 01 2021AkrISrn外部插件5653475Raw
KaTeX
The documentation is a work in progress, and English edition is just an empty shell for now. I will translate it when Chinese edition has done.

Markdown

[*](https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css)[$](https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js)[$](https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.js "katex")[$](/uploads/render-math.js "renderMathInElement")
Markdown
  • auto-render.js 会在 katex.min.js 加载完成后引入。
  • render-math.js 会在 auto-render.js 加载完成后引入。

render-math.js

(() => {
  vno.callAndListen(() => {
    renderMathInElement(document.body, {
      delimiters: [
        { left: '${', right: '}', display: true },
        { left: '$', right: '$', display: false },
        { left: '\\[', right: '\\]', display: true },
        { left: '\\(', right: '\\)', display: false },
      ],
    });
  }, vno.EEvent.htmlChanged);
  // // 驻留
  // }, vno.EEvent.htmlChanged, document, true);})();
JavaScript

KaTeX 默认的一组块级标记是两个 $,它和自定义脚本冲突了,这里把它调整为了 ${ }

示例

${ c = \pm\sqrt{a^2 + b^2} }

${ c = \pm\sqrt{a^2 + b^2} }

$ c = \pm\sqrt{a^2 + b^2} $

$ c = \pm\sqrt{a^2 + b^2} $

\\[ \sqrt{3x-1}+(1+x)^2 \\]

\[ \sqrt{3x-1}+(1+x)^2 \]

\\( \sqrt{3x-1}+(1+x)^2 \\)

\( \sqrt{3x-1}+(1+x)^2 \)

This page is open source, improve it
Graph

$$