caption-codeblock-basic

A ^ line immediately after a CodeBlock closing fence sets caption on the CodeBlock node

§6.2 · source

Input

```python
x = 1
```
^ A simple assignment

Output AST

- type: CodeBlock
  language: python
  raw: x = 1
  caption:
    - type: Text
      value: A simple assignment