2017 © Pedro Peláez
 

library commonmark-extras

Useful extensions for customizing the league/commonmark parser

image

league/commonmark-extras

Useful extensions for customizing the league/commonmark parser

  • Sunday, December 31, 2017
  • by colinodell
  • Repository
  • 5 Watchers
  • 18 Stars
  • 10,768 Installations
  • PHP
  • 6 Dependents
  • 1 Suggesters
  • 3 Forks
  • 3 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

league/commonmark-extras

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

DEPRECATED

This extension has been deprecated. All of its functionality now exists in league/commonmark 1.3+. You can either register the various extensions individually or use the GithubFlavoredMarkdownExtension to get full GFM functionality, so you should upgrade to that version of league/commonmark and use that instead of this one., (*2)

Overview

league/commonmark-extras is a collection of useful GFM extensions and utilities for the league/commonmark project., (*3)

Adding this extension to your project will automatically register these sub-extensions:, (*4)

Extension Purpose
league/commonmark-ext-autolink Automatically creating links to URLs and email address (without needing the <...> syntax)
league/commonmark-ext-smartpunct Intelligently converts ASCII quotes, dashes, and ellipses to their Unicode equivalents
league/commonmark-ext-strikethrough Adds support for ~~strikethrough~~ syntax
league/commonmark-ext-table GFM-style tables
league/commonmark-ext-task-list GFM-style task lists - [x] Like this

Install

Via Composer, (*5)

``` bash $ composer require league/commonmark-extras, (*6)


## Usage This can be added to any new `Environment`: ``` php use League\CommonMark\CommonMarkConverter; use League\CommonMark\Environment; use League\CommonMark\Extras\CommonMarkExtrasExtension; // Obtain a pre-configured Environment with all the CommonMark parsers/renderers ready-to-go $environment = Environment::createCommonMarkEnvironment(); // REGISTER THIS EXTENSION HERE $environment->addExtension(new CommonMarkExtrasExtension()); // Define your configuration: $config = []; // Now that the `Environment` is configured we can create the converter engine: $converter = new CommonMarkConverter($config, $environment); // Go forth and convert you some Markdown! echo $converter->convertToHtml('# Hello World!');

Change log

Please see CHANGELOG for more information what has changed recently., (*7)

Testing

bash $ composer test, (*8)

Security

If you discover any security related issues, please email colinodell@gmail.com instead of using the issue tracker., (*9)

Credits

License

This library is licensed under the BSD-3 license. See the LICENSE file for more information., (*10)

The Versions

31/12 2017

dev-master

9999999-dev https://github.com/thephpleague/commonmark-extras

Useful extensions for customizing the league/commonmark parser

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extensions markdown commonmark extras

31/12 2017

0.1.4

0.1.4.0 https://github.com/thephpleague/commonmark-extras

Useful extensions for customizing the league/commonmark parser

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extensions markdown commonmark extras

31/10 2017

0.1.3

0.1.3.0 https://github.com/thephpleague/commonmark-extras

Useful extensions for customizing the league/commonmark parser

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extensions markdown commonmark extras

20/09 2016

0.1.2

0.1.2.0 https://github.com/thephpleague/commonmark-extras

Useful extensions for customizing the league/commonmark parser

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extensions markdown commonmark extras

16/01 2016

0.1.1

0.1.1.0 https://github.com/thephpleague/commonmark-extras

Useful extensions for customizing the league/commonmark parser

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extensions markdown commonmark extras

14/01 2016

0.1.0

0.1.0.0 https://github.com/thephpleague/commonmark-extras

Useful extensions for customizing the league/commonmark parser

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extensions markdown commonmark extras