You are here

function markdown_libraries_info in Markdown 8

Same name and namespace in other branches
  1. 7.2 markdown.module \markdown_libraries_info()

Implements hook_libraries_info().

File

./markdown.module, line 23
Provides a Markdown input filter.

Code

function markdown_libraries_info() {
  $libraries['php-markdown'] = [
    'name' => 'PHP Markdown Lib',
    'vendor url' => 'http://michelf.ca/projects/php-markdown/',
    'download url' => 'https://github.com/michelf/php-markdown/archive/lib.zip',
    'path' => 'Michelf',
    'version arguments' => [
      'file' => 'Readme.md',
      'pattern' => '@(?i:PHP Markdown Lib) ([0-9\\.]+)@',
      'lines' => 5,
    ],
    'files' => [
      'php' => [
        'Markdown.inc.php',
      ],
    ],
    'variants' => [
      'markdown' => [
        'files' => [
          'php' => [
            'Markdown.inc.php',
          ],
        ],
      ],
      'markdown-extra' => [
        'files' => [
          'php' => [
            'MarkdownExtra.inc.php',
          ],
        ],
      ],
    ],
  ];
  return $libraries;
}