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
- Host: GitHub
- URL: https://github.com/glensc/php-osschools-commonmark-ext
- Owner: glensc
- Created: 2019-03-13T20:09:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T20:32:36.000Z (about 6 years ago)
- Last Synced: 2025-01-24T08:24:56.729Z (4 months ago)
- Language: PHP
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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");
```