Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Commonmark Ext Table Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Roadmap Alignment: Enables structured data representation in Markdown across documentation, wikis, and internal tools (e.g., feature comparison tables, API specs, or data dashboards). Aligns with trends toward Markdown-first content strategies (e.g., replacing Confluence/Notion with self-hosted solutions).
  • Build vs. Buy: Buy—eliminates the need to build custom Markdown table parsers, reducing technical debt. Leverages a battle-tested, MIT-licensed solution with GFM compatibility (alignment, captions).
  • Use Cases:
    • Developer Portals: Render API reference tables or SDK feature matrices in Markdown (e.g., Swagger/OpenAPI alternatives).
    • Internal Wikis: Replace static HTML tables with editable Markdown (e.g., GitHub Wiki, DokuWiki, or custom Laravel-based wikis).
    • Content Management: Allow non-technical users to create tables in Markdown (e.g., blog posts, knowledge bases, or customer-facing docs).
    • Data Visualization: Convert Markdown tables to HTML/CSV for embedding in dashboards (e.g., Laravel Nova, Grafana, or custom admin panels).
  • Migration Path: Deprecation Note: Since functionality is now bundled in 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.

When to Consider This Package

  • Adopt if:
    • Your project uses league/commonmark <1.3 and requires GFM-style tables (alignment, captions) without custom CSS/JS workarounds.
    • You need a lightweight, MIT-licensed solution for Markdown table parsing/rendering in PHP/Laravel.
    • Your team prefers Markdown over HTML for structured content (e.g., docs, wikis, or CMS backends).
    • You’re migrating from deprecated packages and need a temporary bridge to the bundled TableExtension.
  • Look Elsewhere if:
    • You’re using league/commonmark ≥1.3: Use the built-in TableExtension (League\CommonMark\Extension\Table) to avoid deprecated code.
    • You need advanced table features (e.g., sorting, pagination, interactive cells): Consider libraries like:
    • Your project requires active maintenance: This package is archived; rely on the core commonmark package for updates.
    • You’re not using PHP/Laravel: Evaluate alternatives like:
      • marked.js (JavaScript)
      • pandoc (multi-language)
      • Python-Markdown (if using Python).

How to Pitch It (Stakeholders)

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:

  • Compatibility: Supports alignment, captions, and multi-column tables out of the box (GFM syntax).
  • Integration: Plugs into league/commonmark in 2 lines of code (see usage).
  • Migration Path: Upgrade to commonmark v1.3+ to drop this dependency entirely—no breaking changes. Tradeoffs:
  • No active updates (archived), but the core package now handles tables.
  • Best for: Docs, wikis, or any Markdown-heavy workflows where tables are static or semi-static. Example Use Case:
// 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:

  • Faster updates: No designer/dev hand-offs for simple tables.
  • Consistency: All tables follow the same Markdown syntax.
  • Future-proof: Works with our Laravel-based wiki and API docs."* Ask: "Which internal tools could benefit from this? (e.g., onboarding docs, pricing pages, support knowledge base?)"
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle