You are here

protected function LeagueCommonMarkGfm::createEnvironment in Markdown 3.0.x

Creates an environment.

Return value

\League\CommonMark\ConfigurableEnvironmentInterface

Overrides LeagueCommonMark::createEnvironment

File

src/Plugin/Markdown/LeagueCommonMarkGfm.php, line 24

Class

LeagueCommonMarkGfm
Plugin annotation @MarkdownParser( id = "thephpleague/commonmark-gfm", label = @Translation("CommonMark (GFM)"), url = "https://commonmark.thephpleague.com", )

Namespace

Drupal\markdown\Plugin\Markdown

Code

protected function createEnvironment() {
  return Environment::createGFMEnvironment();
}