1# Markdown
2
3Markdown support is available natively in Zed.
4
5- Tree Sitter: [tree-sitter-markdown](https://github.com/tree-sitter-grammars/tree-sitter-markdown)
6- Language Server: N/A
7
8## Syntax Highlighting Code Blocks
9
10Zed supports language-specific syntax highlighting of markdown code blocks by leveraging [tree-sitter language grammars](../extensions/languages.md#grammar). All [Zed supported languages](../languages.md), including those provided by official or community extensions, are available for use in markdown code blocks. All you need to do is provide a language name after the opening <kbd>```</kbd> code fence like so:
11
12````python
13```python
14import functools as ft
15
16@ft.lru_cache(maxsize=500)
17def fib(n):
18 return n if n < 2 else fib(n - 1) + fib(n - 2)
19```
20````
21
22## Configuration
23
24If you wish change the default language settings for Markdown files, perhaps to disable auto format on save or if your markdown relies upon trailing whitespace ` ` being converted to `<br />` you can add change these values in your `settings.json`:
25
26```json
27 "languages": {
28 "Markdown": {
29 "remove_trailing_whitespace_on_save": true,
30 "format_on_save": "on"
31 }
32 },
33```