# table

URL: /patitas/api/plugins/table/
Section: plugins
Description: Table plugin for Patitas (GFM-style pipe tables).

Adds support for GitHub-Flavored Markdown tables.

Usage:
    >>> md = create_markdown(plugins=["table"])
    >>> md("| A | B |
|---|---|
| 1 | 2 |")
    '<table><thead><tr><th>A</th><th>B</th></tr></thead>...'

Syntax:
| Header 1 | Header 2 |
|----------|----------|
| Cell 1   | Cell 2   |

Alignment:
| Left | Center | Right |
|:-----|:------:|------:|
| L    |   C    |     R |

Features:
- Column alignment via :--- :--: ---:
- Inline markdown in cells
- Pipes can be escaped with ``\|``

Thread Safety:
This plugin is stateless and thread-safe.

---

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

Open LLM text
(/patitas/api/plugins/table/index.txt)

Share with AI

Ask Claude
(https://claude.ai/new?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fpatitas%2Fapi%2Fplugins%2Ftable%2Findex.txt)

Ask ChatGPT
(https://chatgpt.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fpatitas%2Fapi%2Fplugins%2Ftable%2Findex.txt)

Ask Gemini
(https://gemini.google.com/app?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fpatitas%2Fapi%2Fplugins%2Ftable%2Findex.txt)

Ask Copilot
(https://copilot.microsoft.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fpatitas%2Fapi%2Fplugins%2Ftable%2Findex.txt)

Module

#
`plugins.table`

Table plugin for Patitas (GFM-style pipe tables).

Adds support for GitHub-Flavored Markdown tables.

Usage:

```
>>> md = create_markdown(plugins=["table"])
>>> md("| A | B |
```

|---|---|
| 1 | 2 |")
'AB...'

Syntax:

Header 1
Header 2

Cell 1
Cell 2

Alignment:

Left
Center
Right

L
C
R

Features:

- Column alignment via :--- :--: ---:

- Inline markdown in cells

- Pipes can be escaped with`\|`

Thread Safety:

This plugin is stateless and thread-safe.

1Class

## Classes

`TablePlugin`

1

▼

Plugin adding GFM table support.

Tables are detected at the block level when a line starts with |
…

Plugin adding GFM table support.

Tables are detected at the block level when a line starts with |
and is followed by a delimiter row (|---|---|).

Enable via Markdown(plugins=["table"]).

Note: The actual parsing is controlled by ParseConfig.tables_enabled,
which is set by the Markdown class based on the plugins list.

#### Methods

`name`

0

`str`

▼

property

`def name(self) -> str`

##### Returns

`str`
