league/commonmark-ext-table
Deprecated CommonMark table extension for PHP. Adds GitHub Flavored Markdown-style tables (alignment, header/body) to league/commonmark environments. Use league/commonmark 1.3+ instead, which includes the same Table extension under League\CommonMark\Extension\Table.
league/commonmark (v1.3+), prioritize upgrading to the core package to reduce dependency sprawl and future-proof the stack. This package serves as a stopgap for legacy systems or as a reference for migration.league/commonmark <1.3 and requires GFM-style tables (alignment, captions) without custom CSS/JS workarounds.TableExtension.league/commonmark ≥1.3: Use the built-in TableExtension (League\CommonMark\Extension\Table) to avoid deprecated code.commonmark package for updates.marked.js (JavaScript)pandoc (multi-language)Python-Markdown (if using Python).For Executives:
"This package lets us standardize on Markdown for structured content (e.g., API docs, wikis) while cutting dev time by 30%—no more manual HTML table maintenance. For example, our API reference could shift from static HTML to editable Markdown, reducing tech debt and improving collaboration. Since it’s deprecated but functional, we’d migrate to the core commonmark package (v1.3+) to future-proof it with minimal rework. ROI: Faster content updates, lower maintenance costs, and better scalability for documentation-heavy products."
For Engineers: *"We can enable GFM tables in Markdown with zero custom parsing logic. Key benefits:
league/commonmark in 2 lines of code (see usage).commonmark v1.3+ to drop this dependency entirely—no breaking changes.
Tradeoffs:// Before (deprecated)
$environment->addExtension(new \League\CommonMark\Ext\Table\TableExtension());
// After (recommended)
$environment->addExtension(new \League\CommonMark\Extension\Table\TableExtension());
Action Item: Audit composer.json for league/commonmark-ext-table and migrate to the bundled extension in the next sprint."*
For Design/Content Teams: *"This lets non-technical users create polished tables in Markdown—no HTML required! Example:
| Feature | Free Plan | Pro Plan |
|---------------|-----------|----------|
| API Calls | 100 | Unlimited|
| Storage | 10MB | 1GB |
Renders to:
<table>
<thead><tr><th>Feature</th><th>Free Plan</th><th>Pro Plan</th></tr></thead>
<tbody>
<tr><td>API Calls</td><td>100</td><td>Unlimited</td></tr>
<tr><td>Storage</td><td>10MB</td><td>1GB</td></tr>
</tbody>
</table>
Why it matters:
How can I help you explore Laravel packages today?