Metadata-Version: 2.4
Name: sphinx-data2table
Version: 0.1.3
Summary: Sphinx data-table extension for TOML, YAML, and JSON with Markdown cell parsing
Author: jagarikokamukamu
License-Expression: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: sphinx>=8.0
Dynamic: license-file

# sphinx-data2table

Sphinx extension to render TOML, YAML, or JSON data as HTML/LaTeX tables with Markdown cell parsing.

## Installation & Setup

```bash
uv add sphinx-data2table  # or pip install sphinx-data2table
```

`conf.py`:
```python
extensions = ["sphinx_data2table"]
```

## Usage

Use the `data-table` directive (alias `datatable` is also supported).

### Inline Data Example

```rst
.. data-table::
   :format: yaml

   - Feature: "**Markdown Support**"
     Details: "Supports **bold**, [links](https://example.com), and more inside cells."

   - Feature: "List Support"
     Details: |
       - Item A
       - Item B
```

### Loading External File

```rst
.. data-table::
   :file: path/to/data.yaml
```

## Options

- `:file:` Path to the external data file
- `:format:` Data format specifier (`yaml`, `toml`, `json`, `auto`)
- `:headers:` Comma-separated column headers to display
