kennysoft/parsedown-tablespan 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kennysoft/parsedown-tablespan

最新稳定版本:v1.1.0

Composer 安装命令:

composer require kennysoft/parsedown-tablespan

包简介

An extension of ParsedownExtra that adds support for rowspan and colspan.

README 文档

README

An extension of ParsedownExtra and Parsedown that adds support for rowspan and colspan.

Also, ParsedownExtended 1.1+ provides in the same way.

Installation

Composer

Install the composer package by running the following command:

composer require kennysoft/parsedown-tablespan

Manual

  1. Download the "Source code" from the latest release
  2. Include Parsedown.php, ParsedownExtra.php, and ParsedownTablespan.php

Example

$ParsedownTablespan = new ParsedownTablespan();

echo $ParsedownTablespan->text('
| >     | >           |   Colspan    | >           | for thead |
| ----- | :---------: | -----------: | ----------- | --------- |
| Lorem | ipsum       |    dolor     | sit         | amet      |
| ^     | -           |      >       | right align | .         |
| ,     | >           | center align | >           | 2x2 cell  |
| >     | another 2x2 |      +       | >           | ^         |
| >     | ^           |              |             | !         |
');

Prints:

Colspan for thead
Lorem ipsum dolor sit amet
- right align .
, center align 2x2 cell
another 2x2 +
!

(Since GitHub does not accept style attribute for cells, upper table is made with align attribute which is not supported in HTML5, just to show what will be generated.)

License

Author

KENNYSOFT hyeonmin.park@kennysoft.kr

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-07