--- a/includes/wikiformat.php Sun Aug 30 00:05:33 2009 -0400
+++ b/includes/wikiformat.php Fri Sep 11 09:57:42 2009 -0400
@@ -62,6 +62,7 @@
'blockquote',
'tables',
'heading',
+ 'hr',
// note: can't be named list ("list" is a PHP language construct)
'multilist',
'bold',
@@ -315,6 +316,29 @@
}
/**
+ * Disables all rules.
+ * @return null
+ */
+
+ public function disable_all_rules()
+ {
+ $this->rules = array();
+ return null;
+ }
+
+ /**
+ * Enables a rule
+ * @param string rule
+ * @return null
+ */
+
+ public function enable_rule($rule)
+ {
+ $this->rules[] = $rule;
+ return null;
+ }
+
+ /**
* Make a rule exclusive (the only one called)
* @param string stage
* @return null