--- marksmarty.module.orig 2007-09-02 23:58:38.000000000 -0400
+++ marksmarty.module 2007-09-02 23:51:25.000000000 -0400
@@ -26,8 +26,8 @@
function marksmarty_filter_tips($delta = 0, $format = -1, $long) {
if ($long) {
- $the_output = t('Quick Tips:
- - Two or more spaces at a line\'s end = Line break
+ $the_output = t('Quick Tips:
+ - Two or more spaces at a line\'s end = Line break
- Double returns = Paragraph
- *Single asterisks* or _single underscores_ = Emphasis
- **Double** or __double__ = Strong
@@ -60,12 +60,12 @@
********************************************************************/
function _marksmarty_process($text, $format) {
- require_once(dirname(__FILE__) . '/markdown.php');
- require_once(dirname(__FILE__) . '/smartypants.php');
if (variable_get("marksmarty_is_markdown_on_$format", 1) == 1) {
+ require_once(dirname(__FILE__) . '/markdown.php');
$text = Markdown($text);
}
if (variable_get("marksmarty_is_smarty_on_$format", 1) == 1) {
+ require_once(dirname(__FILE__) . '/smartypants.php');
global $smartypants_attr;
$smartypants_attr = variable_get("marksmarty_smarty_hyphens_$format", 0) + 1;
$text = SmartyPants($text);