everyday/commonquill
最新稳定版本:0.1.5
Composer 安装命令:
composer require everyday/commonquill
包简介
PHP Markdown to Quill Delta parser based on the CommonMark spec
README 文档
README
everyday/commonquill is a PHP-based Markdown to Quill parser created by Everyday which supports the full [CommonMark] spec. everyday/commonquill depends on league/commonmark's brilliant AST implementation.
Installation
This project can be installed via [Composer]:
$ composer require everyday/commonquill
Basic Usage
The QuillConverter class provides a simple wrapper for converting CommonMark to Quill Deltas:
use Everyday\CommonQuill\QuillConverter; $converter = new QuillConverter(); echo json_encode($converter->convertToQuill('# Hello World!')); // {"ops":[{"insert":"Hello World!"},{"insert":"\n","attributes":{"header":1}}]}
Advanced Usage & Customization
Please refer to thephpleague/commonmark's docs for more information.
统计信息
- 总下载量: 940
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2019-02-26