diff --git a/syntaxreference.txt b/syntaxreference.txt
index 624a763..3edcd1c 100644
--- a/syntaxreference.txt
+++ b/syntaxreference.txt
@@ -24,15 +24,6 @@ print code.colorize("abc", 1 + 1)
foo = new something(1, "soo\nice")
}}}
-{{{
-plain
-multiline block
-with some ''text'' in it
-fourth line
-
-sixth line!
-}}}
-
= Bullet list =
{{{
* item 1
@@ -63,3 +54,41 @@ sixth line!
1. item 2
a. item 1
a. item 2
+
+= Code display =
+{{{
+line 1
+ indented 4 characters
+}}}
+
+{{{
+plain
+multiline block
+with some ''text'' in it
+fourth line
+
+sixth line!
+}}}
+
+= Rules =
+{{{
+--- (not a rule)
+----
+-----
+------
+-------
+--------
+---------
+----------
+-------------------------------------------- (not thicker than 10)
+}}}
+--- (not a rule)
+----
+-----
+------
+-------
+--------
+---------
+----------
+-------------------------------------------- (not thicker than 10)
+
diff --git a/text_dokuwiki.py b/text_dokuwiki.py
index 58d6ac1..98999ef 100644
--- a/text_dokuwiki.py
+++ b/text_dokuwiki.py
@@ -89,7 +89,10 @@ class Formatter(FormatterBase):
def rule(self, size=0, **kw):
# size not supported
- return '----\n'
+ if size >= 4:
+ return '----\n'
+ else:
+ return '-' * size + '\n'
def icon(self, type):
return '