承接 jonathan-reichardt/markdown-task-lists 相关项目开发

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

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

jonathan-reichardt/markdown-task-lists

最新稳定版本:v1.0.4

Composer 安装命令:

composer require jonathan-reichardt/markdown-task-lists

包简介

Frok from kirra/markdown-task-lists. Support Github's Task Lists in a cebe/markdown parser.

README 文档

README

Forked from kirra/markdown-task-lists for some minor changes.

A trait to extend cebe/markdown with Task Lists support.

Installation

PHP 7.1 or higher is required to use it.

composer require jonathan-reichardt/markdown-task-lists

Usage

To parse a Task List you need to make your own parser, and let it use the TaskListsTrait.

class MyParser extends \cebe\markdown\Markdown {
	use JonathanReichardt\Markdown\TaskListsTrait;
}

$parser = new MyParser();
$parser->parse("- [ ] Open"); // Will return a list with an open checkbox.

Everything after the checkbox will be parsed as inline elements. So you can still apply every inline style your parser supports.

Usage in your own parser

If you build a fully custom parser, make sure it includes cebe\markdown\block\ListTrait, as the checkbox only works within a list.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-26