You are here

public function ParsedownExtra::allowedHtmlTags in Markdown 8.2

Retrieves the allowed HTML tags.

Parameters

\Drupal\markdown\Plugin\Markdown\ParserInterface $parser: The parser associated with this plugin.

\Drupal\Core\Theme\ActiveTheme $activeTheme: Optional. The active them. This is used as an indicator when in "render mode".

Return value

array An associative array of allowed HTML tags.

Overrides Parsedown::allowedHtmlTags

File

src/Plugin/Markdown/Parsedown/ParsedownExtra.php, line 39

Class

ParsedownExtra
Support for Parsedown Extra by Emanuil Rusev.

Namespace

Drupal\markdown\Plugin\Markdown\Parsedown

Code

public function allowedHtmlTags(ParserInterface $parser, ActiveTheme $activeTheme = NULL) {
  return [
    'a' => [
      'rev' => TRUE,
    ],
    'abbr' => [],
    'dd' => [],
    'dl' => [],
    'dt' => [],
    'sup' => [],
  ];
}