def generate_text_notebook() -> str:
    """Generate `notebook.md` content."""
    content = (
        """\
---
file_format: mystnb
kernelspec:
  name: python3
---

# Text-based Notebook

```{code-cell}
print("Hello, World!")
```
    """.rstrip()
        + "\n"
    )
    return content