# Content Features

URL: /bengal/docs/content/authoring/notebooks/content-features/
Section: notebooks

---

> For a complete page index, fetch /bengal/llms.txt.

# Content Features Demo

This notebook showcases Bengal's full rendering pipeline for notebooks:

- **Markdown** — Headings, lists, and inline math like $x^2 + y^2 = z^2$
- **Code** — Syntax-highlighted with Rosettes
- **Outputs** — Stream and execute_result rendered as HTML

```python
import math

print(f"Pi to 4 decimals: {math.pi:.4f}")
```

<div class="nb-output"><pre>Pi to 4 decimals: 3.1416
</pre></div>

## Block Math

Block equations work in markdown cells:

$$E = mc^2$$

$$\sum_{i=1}^n i = \frac{n(n+1)}{2}$$

```python
def greet(name: str) -> str:
    return f"Hello, {name}!"


greet("Bengal")
```

<div class="nb-output"><pre>'Hello, Bengal!'</pre></div>
