Show
Ignore:
Timestamp:
03/25/08 09:24:47 (8 months ago)
Author:
JensDiemer
Message:

move the automatic headline anchor function from tinyTextile markup ( changeset:1500 ) into a middleware. So every markups becomes headline anchors. See also: ticket:46

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/tools/content_processors.py

    r1500 r1503  
    4646        from PyLucid.system.tinyTextile import TinyTextileParser 
    4747        out_obj = SimpleStringIO() 
    48  
    49         current_page = context["PAGE"] 
    50         permalink = current_page.get_permalink() 
    51  
    52         markup_parser = TinyTextileParser(out_obj, permalink, context) 
     48        markup_parser = TinyTextileParser(out_obj, context) 
    5349        markup_parser.parse(content) 
    5450        content = out_obj.getvalue()