Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Fix broken LaTeX examples.

Alex Vandiverdabe0cc6d6b6
diff --git a/starlight_help/src/content/docs/latex.mdx b/starlight_help/src/content/docs/latex.mdx
index 06d4551af22..e37b2ba9d15 100644
--- a/starlight_help/src/content/docs/latex.mdx
+++ b/starlight_help/src/content/docs/latex.mdx
@@ -20,11 +20,11 @@ import MathIcon from "~icons/zulip-icon/math";
Zulip's compose box has a smart **Math (LaTeX)** (<MathIcon />) button, which inserts contextually appropriate LaTeX
formatting:
-* If no text is selected, the button inserts displayed LaTeX (\`\`\`\`math\`) formatting.
+* If no text is selected, the button inserts displayed LaTeX (<code>```math</code>) formatting.
* If selected text is on one line, the button inserts inline LaTeX (`$$`)
formatting.
* If selected text is on multiple lines, the button inserts displayed LaTeX
- (\`\`\`\`math\`) formatting.
+ (<code>```math</code>) formatting.
<Tabs>
<TabItem label="Via compose box button">
@@ -47,12 +47,18 @@ formatting:
<StartComposing />
1. To use inline LaTeX, use double dollar signs (`$$`) around the text:
+ ```
$$O(n^2)$$
+ ```
+
To use displayed LaTeX, use triple backticks and the word math
- (\`\`\`\`math\`) followed by some text and triple backticks at the end:
+ (<code>```math</code>) followed by some text and triple backticks at the end:
+
+ ````
```math
\int_a^b f(t)\, dt = F(b) - F(a)
```
+ ````
</FlattenedSteps>
</TabItem>
</Tabs>