All Projects → thephpleague → Commonmark Ext Table

thephpleague / Commonmark Ext Table

Licence: mit
The table extension for CommonMark PHP implementation

Projects that are alternatives of or similar to Commonmark Ext Table

Angular Generic Table
A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
Stars: ✭ 100 (-21.87%)
Mutual labels:  table
Reactables
GigaTables is a ReactJS plug-in to help web-developers process table-data in applications and CMS, CRM, ERP or similar systems.
Stars: ✭ 112 (-12.5%)
Mutual labels:  table
Table2excel.js
Export html table to excel file in browser
Stars: ✭ 118 (-7.81%)
Mutual labels:  table
Quilljs Table
Table functionality for quilljs
Stars: ✭ 101 (-21.09%)
Mutual labels:  table
Complexgrid
复杂表格,支持表格展示,树形表格展示,对表格进行拖拽排序,以及表格排序,表格拖拽排序,自定义表格内容,是一个基于vue的表格插件。Complex table, support table display, tree table display, drag and drop table sort, and table sort, table drag and drop sort, custom table content, is a vue based table plugin
Stars: ✭ 110 (-14.06%)
Mutual labels:  table
Vue Tables 2
Vue.js 2 grid components
Stars: ✭ 1,518 (+1085.94%)
Mutual labels:  table
Vim Table Mode
VIM Table Mode for instant table creation.
Stars: ✭ 1,341 (+947.66%)
Mutual labels:  table
Commonmark Java
Java library for parsing and rendering CommonMark (Markdown)
Stars: ✭ 1,675 (+1208.59%)
Mutual labels:  commonmark
Beautifultable
Python package for printing visually appealing tables on a terminal.
Stars: ✭ 110 (-14.06%)
Mutual labels:  table
Ka Table
Lightweight MIT React Table component for both TS and JS with Sorting, Filtering, Grouping, Virtualization, Editing and many more
Stars: ✭ 117 (-8.59%)
Mutual labels:  table
Ax5ui Grid
Javascript UI Component - GRID ( Excel Grid, jqGrid, angularjs grid, jquery grid, SlickGrid, ag-grid gridify)
Stars: ✭ 102 (-20.31%)
Mutual labels:  table
Vue Table Dynamic
🎉 A dynamic table with sorting, filtering, editing, pagination, multiple select, etc.
Stars: ✭ 106 (-17.19%)
Mutual labels:  table
Hot Table
Handsontable - Best Data Grid Web Component with Spreadsheet Look and Feel.
Stars: ✭ 114 (-10.94%)
Mutual labels:  table
Laravel Table
Generate tables from Eloquent models.
Stars: ✭ 101 (-21.09%)
Mutual labels:  table
Flexmark Java
CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
Stars: ✭ 1,673 (+1207.03%)
Mutual labels:  commonmark
Gridviewscroll
Freeze column and fixed header in Table or GridView
Stars: ✭ 99 (-22.66%)
Mutual labels:  table
Vue Grid
A flexible grid component for Vue.js
Stars: ✭ 113 (-11.72%)
Mutual labels:  table
Console.table
Adds console.table method that prints an array of objects as a table in console
Stars: ✭ 125 (-2.34%)
Mutual labels:  table
Ng2 Smart Table
Angular Smart Data Table component
Stars: ✭ 1,590 (+1142.19%)
Mutual labels:  table
Goldmark
🏆 A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
Stars: ✭ 1,813 (+1316.41%)
Mutual labels:  commonmark

CommonMark Table Extension

Latest Version Build Status Code Quality Code Coverage

DEPRECATED

This extension has been deprecated. All of its functionality now exists in league/commonmark 1.3+ under the League\CommonMark\Extension\Table namespace, so you should upgrade to that version and use that bundled extension instead of this one.

Overview

The Table extension adds the ability to create tables in CommonMark documents.

Installation

This project can be installed via Composer:

composer require league/commonmark-ext-table

Usage

Configure your Environment as usual and simply add the TableExtension provided by this package:

use League\CommonMark\Converter;
use League\CommonMark\DocParser;
use League\CommonMark\Environment;
use League\CommonMark\HtmlRenderer;
use League\CommonMark\Ext\Table\TableExtension;

// Obtain a pre-configured Environment with all the standard CommonMark parsers/renderers ready-to-go
$environment = Environment::createCommonMarkEnvironment();

// Add this extension
$environment->addExtension(new TableExtension());

// Instantiate the converter engine and start converting some Markdown!
$converter = new Converter(new DocParser($environment), new HtmlRenderer($environment));

echo $converter->convertToHtml('# Hello World!');

Syntax

This package is fully compatible with GFM-style tables:

Simple

Code:

th | th(center) | th(right)
---|:----------:|----------:
td | td         | td

Result:

<table>
<thead>
<tr>
<th style="text-align: left">th</th>
<th style="text-align: center">th(center)</th>
<th style="text-align: right">th(right<)/th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left">td</td>
<td style="text-align: center">td</td>
<td style="text-align: right">td</td>
</tr>
</tbody>
</table>

Advanced

| header 1 | header 2 | header 2 |
| :------- | :------: | -------: |
| cell 1.1 | cell 1.2 | cell 1.3 |
| cell 2.1 | cell 2.2 | cell 2.3 |

Table caption

header 1 | header 2
-------- | --------
cell 1.1 | cell 1.2
[Simple table]

Code:

header 1 | header 2
-------- | --------
cell 1.1 | cell 1.2
[*Prototype* table][reference_table]

Result:

<table>
<caption id="reference_table"><em>Prototype</em> table</caption>
<thead>
<tr>
<th>header 1</th>
<th>header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>cell 1.1</td>
<td>cell 1.2</td>
</tr>
</tbody>
</table>
<table>

Changelog

Please refer to the CHANGELOG for more information on what has changed recently.

Development

You need to have php or docker installed to develop the library. To list all available commands run:

./run

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

This library is licensed under the MIT license. See the License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].