An open API service indexing awesome lists of open source software.

https://github.com/glensc/php-osschools-commonmark-ext

Extension for Commonmark for OSSchools
https://github.com/glensc/php-osschools-commonmark-ext

Last synced: 2 months ago
JSON representation

Extension for Commonmark for OSSchools

Awesome Lists containing this project

README

        

# commonmark-ext

This is an extension to [thephpleague/commonmark](https://github.com/thephpleague/commonmark)

### Features
* Automatic Link Generation without <...> with generated titles from the webpage
* `https://google.com/store` becomes `[Google Store](https://google.com/store)`
* Supports all URL types
* Automatic E-mail linking as well
* Strike-through support `~~strike this~~` looks like this: ~~strike this~~

### How to use
```php
addExtension(new \OSSchools\Extensions\CommonMark\OSSchoolsCommonMarkExtension());

$converter = new \League\CommonMark\Converter(new \League\CommonMark\DocParser($environment), new \League\CommonMark\HtmlRenderer($environment));

$converter->convertToHtml("# Your Markdown Here");
```