Changeset 279

Show
Ignore:
Timestamp:
02/03/08 15:30:39 (10 months ago)
Author:
ingy
Message:
Add pre to formatter
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ingy/WikiText-Creole/lib/WikiText/Creole/Parser.pm

    r276 r279  
    44sub create_grammar { 
    55    my $all_blocks = [ 
    6         'h6', 'h5', 'h4', 'h3', 'h2', 'h1', 
     6        'pre','h6', 'h5', 'h4', 'h3', 'h2', 'h1', 
    77        'ul', 'ol', 'hr', 'p', 
    88    ]; 
     
    3838            phrases => $all_phrases, 
    3939            filter => sub { chomp }, 
     40        }, 
     41        pre => { 
     42            match => qr/^\{\{\{\n(.*?\n)\}\}\}\n+/s, 
    4043        }, 
    4144        h1 => {