Installation

Usage

This extension can be added to any new Environment:

useLeague\CommonMark\CommonMarkConverter;useLeague\CommonMark\Environment;useLeague\CommonMark\Extension\Strikethrough\StrikethroughExtension;// Obtain a pre-configured Environment with all the CommonMark parsers/renderers ready-to-go$environment=Environment::createCommonMarkEnvironment();// Add this extension$environment->addExtension(newStrikethroughExtension());// Instantiate the converter engine and start converting some Markdown!$converter=newCommonMarkConverter($config,$environment);echo$converter->convertToHtml('This extension is ~~really good~~ great!');

Love PHP Commonmark?
Show your support!
Support development via monthly sponsorship or a one-time donation!