kirra/markdown-task-lists 问题修复 & 功能扩展

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

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

kirra/markdown-task-lists

Composer 安装命令:

composer require kirra/markdown-task-lists

包简介

Support Github's Task Lists in a cebe/markdown parser.

README 文档

README

Build Status Coverage Status

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

Installation

PHP 7.1 or higher is required to use it.

composer require kirra/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 Kirra\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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固