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 |") '

...'

Syntax:

AB
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.

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