Changeset 248

Show
Ignore:
Timestamp:
02/27/2008 14:46:10 (9 months ago)
Author:
jgarber
Message:

Allow blockquote citation.

Location:
branches/superredcloth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/superredcloth/ext/superredcloth_scan/superredcloth_scan.rl

    r247 r248  
    3030  pre_block_start = ( "pre" >A %{ STORE(type) } A C :> "." ( "." %extend | "" ) " "+ ) ; 
    3131  bc_start = ( "bc" >A %{ STORE(type) } A C :> "." ( "." %extend | "" ) " "+ ) ; 
    32   bq_start = ( "bq" >A %{ STORE(type) } A C :> "." ( "." %extend | "" ) " "+ ) ; 
     32  bq_start = ( "bq" >A %{ STORE(type) } A C :> "." ( "." %extend | "" ) ( ":" %A uri %{ STORE(cite) } )? " "+ ) ; 
    3333  btype = ( "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" ) ; 
    3434  block_start = ( btype >A %{ STORE(type) } A C :> "." ( "." %extend | "" ) " "+ ) ; 
  • branches/superredcloth/lib/superredcloth.rb

    r238 r248  
    109109  def bq_open(opts) 
    110110    opts[:block] = true 
    111     "<blockquote#{pba(opts)}>" 
     111    cite = opts[:cite] ? " cite=\"#{ opts[:cite] }\"" : '' 
     112    "<blockquote#{cite}#{pba(opts)}>" 
    112113  end 
    113114