> ## Documentation Index
> Fetch the complete documentation index at: https://mdxify.zzstoatzz.io/llms.txt
> Use this file to discover all available pages before exploring further.

# formatter

# `mdxify.formatter`

Docstring formatting utilities.

## Functions

### `format_docstring_with_griffe` <sup><a href="https://github.com/zzstoatzz/mdxify/blob/main/src/mdxify/formatter.py#L16" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
format_docstring_with_griffe(docstring: str) -> str
```

Format a docstring using Griffe for better structure.

### `escape_mdx_content` <sup><a href="https://github.com/zzstoatzz/mdxify/blob/main/src/mdxify/formatter.py#L99" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
escape_mdx_content(content: str) -> str
```

Escape content for MDX to prevent parsing issues, but not inside code blocks.
