You are here

function markdown_filter in Markdown 6

Same name and namespace in other branches
  1. 5 markdown.module \markdown_filter()

Implementation of hook_filter().

File

./markdown.module, line 16

Code

function markdown_filter($op, $delta = 0, $format = -1, $text = '') {
  switch ($op) {
    case 'list':
      return array(
        t('Markdown'),
      );
    case 'description':
      return t('Allows content to be submitted using Markdown, a simple plain-text syntax that is filtered into valid XHTML.');
    case 'settings':
      return _markdown_settings($format);
    case 'process':
      return _markdown_process($text, $format);
    default:
      return $text;
  }
}