| @@ -24,14 +24,14 @@ class BlockdownPlugin(TextyPlugin): | |||||
| """ | """ | ||||
| The default pattern for block open text. | The default pattern for block open text. | ||||
| """ | """ | ||||
| return '^\s*===+\s*([A-Za-z0-9_\-\.]+)\s*=*\s*$' | |||||
| return '^\s*===+([A-Za-z0-9_\-\.]+)=*\s*$' | |||||
| @property | @property | ||||
| def default_close_pattern(self): | def default_close_pattern(self): | ||||
| """ | """ | ||||
| The default pattern for block close text. | The default pattern for block close text. | ||||
| """ | """ | ||||
| return '^\s*===+\s*/+\s*=*/*([A-Za-z0-9_\-\.]*)[\s=/]*$' | |||||
| return '^\s*===+/+\s*=*/*([A-Za-z0-9_\-\.]*)[\s=/]*$' | |||||
| def text_to_tag(self, match, start=True): | def text_to_tag(self, match, start=True): | ||||
| """ | """ | ||||
| @@ -42,4 +42,4 @@ class BlockdownPlugin(TextyPlugin): | |||||
| with | with | ||||
| {% endblock blockname %} or equivalent | {% endblock blockname %} or equivalent | ||||
| """ | """ | ||||
| return super(BlockdownPlugin, self).text_to_tag(match, start) | |||||
| return super(BlockdownPlugin, self).text_to_tag(match, start) | |||||