You are here

function hook_markdown_extension_info_alter in Markdown 8.2

Performs alterations on markdown extension plugin definitions.

Parameters

array $info: An array of markdown extension plugin definitions, as collected by the plugin annotation discovery mechanism.

See also

\Drupal\markdown\Annotation\MarkdownExtension

\Drupal\markdown\Plugin\Markdown\BaseExtension

\Drupal\markdown\Plugin\Markdown\ExtensionInterface

\Drupal\markdown\PluginManager\ExtensionManager

File

./markdown.api.php, line 140
Hooks and alters provided by the Markdown module.

Code

function hook_markdown_extension_info_alter(array &$info) {

  // Use a custom class for TOC.
  $info['commonmark-table-of-contents']['settings']['html_class'] = 'my-module-toc-class';
}