Browse Source

Added blockdown plugin

main
Lakshmi Vyasarajan 14 years ago
parent
commit
3d723f0b76
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      hyde/ext/plugins/blockdown.py

+ 3
- 3
hyde/ext/plugins/blockdown.py View File

@@ -24,14 +24,14 @@ class BlockdownPlugin(TextyPlugin):
"""
The default pattern for block open text.
"""
return '^\s*===+\s*([A-Za-z0-9_\-\.]+)\s*=*\s*$'
return '^\s*===+([A-Za-z0-9_\-\.]+)=*\s*$'

@property
def default_close_pattern(self):
"""
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):
"""
@@ -42,4 +42,4 @@ class BlockdownPlugin(TextyPlugin):
with
{% endblock blockname %} or equivalent
"""
return super(BlockdownPlugin, self).text_to_tag(match, start)
return super(BlockdownPlugin, self).text_to_tag(match, start)

Loading…
Cancel
Save