? markdown.info ? markdown.module ? split_markdown.patch Index: marksmarty.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/marksmarty/marksmarty.info,v retrieving revision 1.2 diff -u -p -r1.2 marksmarty.info --- marksmarty.info 22 Jan 2008 20:55:38 -0000 1.2 +++ marksmarty.info 22 Feb 2008 12:20:09 -0000 @@ -1,5 +1,5 @@ -name = Marksmarty -description = Allows content to be submitted using Markdown, a simple plain-text syntax that is transformed into valid XHTML, and/or using SmartyPants, a filter for auto-translating plain ASCII characters to Unicode characters. +name = Markdown +description = Allows content to be submitted using Markdown, a simple plain-text syntax that is transformed into valid XHTML. package = "Input filters" dependencies[] = filter core = 6.x \ No newline at end of file Index: marksmarty.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/marksmarty/marksmarty.module,v retrieving revision 1.22 diff -u -p -r1.22 marksmarty.module --- marksmarty.module 20 Feb 2008 18:07:59 -0000 1.22 +++ marksmarty.module 22 Feb 2008 12:20:09 -0000 @@ -5,43 +5,40 @@ * Drupal Hooks ********************************************************************/ -function marksmarty_filter($op, $delta = 0, $format = -1, $text = '') { +function markdown_filter($op, $delta = 0, $format = -1, $text = '') { switch ($op) { case 'list': - return array(t('Markdown with SmartyPants')); + 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, and converts plain ASCII characters to Unicode entities using SmartyPants.'); - - case 'settings': - return _marksmarty_settings($format); + return t('Allows content to be submitted using Markdown, a simple plain-text syntax that is filtered into valid XHTML.'); case 'process': - return _marksmarty_process($text, $format); + return _markdown_process($text, $format); default: return $text; } } -function marksmarty_block($op = 'list', $delta = 0, $edit = array()) { +function markdown_block($op = 'list', $delta = 0, $edit = array()) { if ($op == 'list') { - $blocks[0] = array('info' => t('Marksmarty Filter Tips')); + $blocks[0] = array('info' => t('Markdown Filter Tips')); return $blocks; } else if ($op == 'view') { switch($delta) { case 0: $block = array('subject' => t('Title of block #1'), - 'content' => marksmarty_display_block_1()); + 'content' => markdown_display_block_1()); break; } return $block; } } -function marksmarty_display_block_1(){ - $content = << ## Header 2 ## ### Header 3 ### @@ -69,13 +66,13 @@ And now some code: // Code is indented text is_easy() to_remember(); -END_MARKSMARTY_BLOCK; +END_markdown_BLOCK; return $content; } -function marksmarty_filter_tips($delta = 0, $format = -1, $long) { +function markdown_filter_tips($delta = 0, $format = -1, $long) { if ($long) { $the_output = t('Quick Tips: