```python
# /// intent
# goal   = "Extract and print the lines starting with '#' from notes.md"
# reads  = ["notes.md"]
# writes = []
# output = "printed"
# ///

import re
from pathlib import Path

def extract_headings(text: str) -> list[str]:
    """Return lines starting with '#' from the text."""
    return [line for line in text.splitlines() if line.strip().startswith('#')]

# Read the markdown file
content = Path('notes.md').read_text()

# Extract and print headings
headings = extract_headings(content)
for line in headings:
    print(line)
```