From dabe0cc6d6b6dafd8f5c0c075e3ba65880cd298c Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 4 Sep 2025 03:37:48 +0000 Subject: [PATCH] help: Fix broken LaTeX examples. --- starlight_help/src/content/docs/latex.mdx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/starlight_help/src/content/docs/latex.mdx b/starlight_help/src/content/docs/latex.mdx index 06d4551af2..e37b2ba9d1 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)** () 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 (```math) 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. + (```math) formatting. @@ -47,12 +47,18 @@ formatting: 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: + (```math) followed by some text and triple backticks at the end: + + ```` ```math \int_a^b f(t)\, dt = F(b) - F(a) ``` + ````