Browse Source

textlinks plugin: do nothing if resource doesn't use template

main
Grygoriy Fuchedzhy 13 years ago
parent
commit
ee90c3751c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      hyde/ext/plugins/textlinks.py

+ 2
- 0
hyde/ext/plugins/textlinks.py View File

@@ -22,6 +22,8 @@ class TextlinksPlugin(Plugin):
with
{{ media_url('/abc/def') }} or equivalent.
"""
if not resource.uses_template:
return text
content_link = re.compile('\[\[([^\]^!][^\]]*)\]\]', re.UNICODE|re.MULTILINE)
media_link = re.compile('\[\[\!\!([^\]]*)\]\]', re.UNICODE|re.MULTILINE)
def replace_content(match):


Loading…
Cancel
Save