承接 czukowski/markdown-tables 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

czukowski/markdown-tables

Composer 安装命令:

composer require czukowski/markdown-tables

包简介

RST Grid Tables parser for cebe/markdown

README 文档

README

This package adds support for reStructuredText's (RST) Grid Tables syntax to cebe's Markdown implementation.

The motivation behind it is that technical documentation often requires a support for tables that are complex, can span rows and columns and contain block elements. Grid Tables for RST provide that, even though they're harder to type than other table implementations in Markdown.

The current implementation is a port of Grid Tables parser from Docutils module originally written in Python by David Goodger. Note that Docutils's scope is far greater than Grid Tables and my intention was not to replicate all of it. One considered extension is eventually adding support for Simple Tables syntax, especially since the current code structure makes it relatively easy task.

Installation

Recommended installation is via composer by running:

composer require czukowski/markdown-tables "~1.0"

Alternatively you may add the following to the require section of your project's composer.json manually and then run composer update from the command line:

"czukowski/markdown-tables: "~1.0"

Usage

This package provides a RSTTableBlockTrait that may be used in classes extending the cebe's original Markdown parsers.

Alternatively, three extensions are provided for easy use (pick one that suits best):

use Cz\Markdown;

$markdownWithRSTTables = new MarkdownWithRSTTables;
$githubMarkdownWithRSTTables = new GithubMarkdownWithRSTTables;
$markdownExtraWithRSTTables = new MarkdownExtraWithRSTTables;

For more information refer to the original Readme file.

Known Issues

If the tables seem broken, make sure a correct default encoding is set beforehand, for example:

// Set default encoding to UTF-8.
mb_internal_encoding('UTF-8');

License

The distribution is permitted under the MIT License. See LICENSE.md for details.

统计信息

  • 总下载量: 414
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固