? cheat_block_marksmarty_201021.patch ? cleanup_marksmarty.patch ? d6_compat_208101.patch ? marksmarty-drupal-6.patch Index: marksmarty.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/marksmarty/marksmarty.info,v retrieving revision 1.1 diff -u -p -r1.1 marksmarty.info --- marksmarty.info 7 Oct 2006 19:28:17 -0000 1.1 +++ marksmarty.info 19 Jan 2008 20:10:34 -0000 @@ -1,4 +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. package = "Input filters" -dependencies = filter \ No newline at end of file +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.18 diff -u -p -r1.18 marksmarty.module --- marksmarty.module 7 Oct 2006 19:28:17 -0000 1.18 +++ marksmarty.module 19 Jan 2008 20:10:34 -0000 @@ -24,6 +24,58 @@ function marksmarty_filter($op, $delta = } } +function marksmarty_block($op = 'list', $delta = 0, $edit = array()) { + if ($op == 'list') { + $blocks[0] = array('info' => t('Marksmarty Filter Tips'), + 'weight' => -5, 'status' => 1, 'region' => 'left'); + return $blocks; + } + else if ($op == 'view') { + switch($delta) { + case 0: + $block = array('subject' => t('Title of block #1'), + 'content' => marksmarty_display_block_1()); + break; + } + return $block; + } +} + +function marksmarty_display_block_1(){ + $content = << +## Header 2 ## +### Header 3 ### +#### Header 4 #### +##### Header 5 ##### +(Hashes on right are optional) + +Link [Drupal](http://drupal.org) + +Inline markup like _italics_, + **bold**, and `code()`. + +> Blockquote - like email replies +>> And, they can be nested + +* Bullet lists are easy too +- Another one ++ Another one + +1. A numbered list +2. Which is numbered +3. With periods and a space + +And now some code: + // Code is indented text + which(is_easy) to_remember(); + +END_MARKSMARTY_BLOCK; + + return $content; + +} + function marksmarty_filter_tips($delta = 0, $format = -1, $long) { if ($long) { $the_output = t('Quick Tips: