diff --git a/text.mdx b/text.mdx index 45cec919..8d0f5829 100644 --- a/text.mdx +++ b/text.mdx @@ -1,7 +1,7 @@ --- title: "Headers and Text" description: "Text, title, and styling in standard markdown" -icon: 'heading' +icon: "heading" --- ## Titles @@ -21,20 +21,18 @@ Best used for subsection headers. ``` - -Each **title** and **subtitle** creates an anchor and also shows up on the table of contents on the right. - + Each **title** and **subtitle** creates an anchor and also shows up on the table of contents on the right. ## Text Formatting We support most markdown formatting. Simply add `**`, `_`, or `~` around text to format it. -| Style | How to write it | Result | -| ------------- | ----------------- | --------------- | -| Bold | `**bold**` | **bold** | -| Italic | `_italic_` | _italic_ | -| Strikethrough | `~strikethrough~` | ~strikethrough~ | +| Style | How to write it | Result | +| ------------- | ----------------- | ----------------- | +| Bold | `**bold**` | **bold** | +| Italic | `_italic_` | _italic_ | +| Strikethrough | `~strikethrough~` | ~~strikethrough~~ | You can combine these. For example, write `**_bold and italic_**` to get **_bold and italic_** text. @@ -49,7 +47,7 @@ You need to use HTML to write superscript and subscript text. That is, add `` in front of a paragraph. ### LaTeX -Mintlify supports in-line [LaTeX](https://www.latex-project.org) by surrounding your LaTeX code with dollar signs (\$). For example, `$(a^2 + b^2 = c^2)$` will render as $(a^2 + b^2 = c^2)$. +Mintlify supports in-line [LaTeX](https://www.latex-project.org) by surrounding your LaTeX code with dollar signs ($$). For example, \`$$ -Equations on their own line can be created with double dollar signs (\$\$): +(a^2 \+ b^2 = c^2)$\` will render as $$(a^2 \\\+ b^2 = c^2)$$ -$$\exists \, x \notin [0,1]$$ +. + +Equations on their own line can be created with double dollar signs ($$): + +$$\\\\exists \\\\, x \\\\notin [0,1]$$ ```md $$\exists \, x \notin [0,1]$$ @@ -103,4 +105,4 @@ Markdown syntax also recognizes a double enter in your MDX as a linebreak. Paragraph 1 Paragraph 2 -``` +``` \ No newline at end of file