public static function LeagueCommonMark::version in Markdown 3.0.x
Retrieves the version of the installed parser.
Return value
string|null
Overrides BaseParser::version
File
- src/
Plugin/ Markdown/ LeagueCommonMark.php, line 59
Class
- LeagueCommonMark
- Plugin annotation @MarkdownParser( id = "thephpleague/commonmark", label = @Translation("CommonMark"), url = "https://commonmark.thephpleague.com", )
Namespace
Drupal\markdown\Plugin\MarkdownCode
public static function version() : string {
if (static::installed()) {
$class = static::$converterClass;
return $class::VERSION;
}
}