Changeset 1761 for trunk/pylucid_project/PyLucid/system/markups/creole.py
- Timestamp:
- 09/11/08 11:38:30 (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid_project/PyLucid/system/markups/creole.py
r1634 r1761 44 44 ]] 45 45 )''' 46 47 #-------------------------------------------------------------------------- 48 # PyLucid Patch: 49 # The image rule should not match on django template tags! So we make it 50 # more restricted. 51 # It matches only if... 52 # ...image target ends with a picture extention 53 # ...separator >|< and the image text exist 46 54 image = r'''(?P<image> 47 55 {{ 48 (?P<image_target>.+? ) \s*49 ( [|]\s* (?P<image_text>.+?) \s*)?56 (?P<image_target>.+?\.jpg|\.jpeg|\.gif|\.png) \s* 57 (\| \s* (?P<image_text>.+?) \s*)? 50 58 }} 51 )''' 59 )(?i)''' 60 #-------------------------------------------------------------------------- 61 52 62 macro = r'''(?P<macro> 53 63 <<