Skip to content

everyday-as/common-quill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

everyday/commonquill

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages