markdown.mdx 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ---
  2. title: 'Markdown syntax'
  3. description: 'Text, title, and styling in standard markdown'
  4. icon: 'text-size'
  5. ---
  6. ## Titles
  7. Best used for section headers.
  8. ```md
  9. ## Titles
  10. ```
  11. ### Subtitles
  12. Best used for subsection headers.
  13. ```md
  14. ### Subtitles
  15. ```
  16. <Tip>
  17. Each **title** and **subtitle** creates an anchor and also shows up on the table of contents on the right.
  18. </Tip>
  19. ## Text formatting
  20. We support most markdown formatting. Simply add `**`, `_`, or `~` around text to format it.
  21. | Style | How to write it | Result |
  22. | ------------- | ----------------- | --------------- |
  23. | Bold | `**bold**` | **bold** |
  24. | Italic | `_italic_` | _italic_ |
  25. | Strikethrough | `~strikethrough~` | ~strikethrough~ |
  26. You can combine these. For example, write `**_bold and italic_**` to get **_bold and italic_** text.
  27. You need to use HTML to write superscript and subscript text. That is, add `<sup>` or `<sub>` around your text.
  28. | Text Size | How to write it | Result |
  29. | ----------- | ------------------------ | ---------------------- |
  30. | Superscript | `<sup>superscript</sup>` | <sup>superscript</sup> |
  31. | Subscript | `<sub>subscript</sub>` | <sub>subscript</sub> |
  32. ## Linking to pages
  33. You can add a link by wrapping text in `[]()`. You would write `[link to google](https://google.com)` to [link to google](https://google.com).
  34. Links to pages in your docs need to be root-relative. Basically, you should include the entire folder path. For example, `[link to text](/writing-content/text)` links to the page "Text" in our components section.
  35. Relative links like `[link to text](../text)` will open slower because we cannot optimize them as easily.
  36. ## Blockquotes
  37. ### Singleline
  38. To create a blockquote, add a `>` in front of a paragraph.
  39. > Dorothy followed her through many of the beautiful rooms in her castle.
  40. ```md
  41. > Dorothy followed her through many of the beautiful rooms in her castle.
  42. ```
  43. ### Multiline
  44. > Dorothy followed her through many of the beautiful rooms in her castle.
  45. >
  46. > The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
  47. ```md
  48. > Dorothy followed her through many of the beautiful rooms in her castle.
  49. >
  50. > The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
  51. ```
  52. ### LaTeX
  53. Mintlify supports [LaTeX](https://www.latex-project.org) through the Latex component.
  54. <Latex>8 x (vk x H1 - H2) = (0,1)</Latex>
  55. ```md
  56. <Latex>8 x (vk x H1 - H2) = (0,1)</Latex>
  57. ```