定制 everyday/commonquill 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

everyday/commonquill

最新稳定版本:0.1.5

Composer 安装命令:

composer require everyday/commonquill

包简介

PHP Markdown to Quill Delta parser based on the CommonMark spec

README 文档

README

Tests StyleCI codecov

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-02-26