function hook_markdown_allowed_html_info_alter in Markdown 8.2
Performs alterations on markdown allowed HTML plugin definitions.
Parameters
array $info: An array of markdown allowed HTML plugin definitions, as collected by the plugin annotation discovery mechanism.
See also
\Drupal\markdown\Annotation\MarkdownAllowedHtml
\Drupal\markdown\Plugin\Markdown\AllowedHtmlInterface
\Drupal\markdown\PluginManager\AllowedHtmlManager
File
- ./
markdown.api.php, line 156 - Hooks and alters provided by the Markdown module.
Code
function hook_markdown_allowed_html_info_alter(array &$info) {
// Remove media embed support, regardless if it's available.
unset($info['media_embed']);
}