Make WordPress Core

Ticket #64310: 64310-math-doc-update.diff

File 64310-math-doc-update.diff, 651 bytes (added by iflairwebtechnologies, 9 months ago)

Documentation update: clarify that \[ \] and $$ $$ must not be used inside Math block.

  • docs/reference/blocks/math.md

    diff --git a/docs/reference/blocks/math.md b/docs/reference/blocks/math.md
    index 1234567..89abcde 100644
    a b The Math block supports standard LaTeX environments such as:  
    4545- `\sqrt{}`
    4646- `\frac{}{}`
    4747
     48## Important: Do not use `\[ \]` or `$$ $$`
     49
     50The Math block already renders content in math mode. 
     51Because of this, LaTeX display math delimiters should **not** be used:
     52
     53```
     54\[ ... \]
     55$$ ... $$
     56```
     57
     58Using these delimiters will cause KaTeX to report parsing errors such as:
     59
     60`Can't use function '\' in math mode`
     61
    4862## Examples
    4963
    5064### Matrix example