[pmwiki-users] Changes to markup
    John Rankin 
    john.rankin at affinity.co.nz
       
    Tue Jun  5 16:47:41 CDT 2012
    
    
  
On 5/06/12 5:40 AM, Ryan Varick wrote:
>
> 3. Is there a way to override the arrow ("->") markup so that it 
> produces <blockquote> instead of <div class="indent">? I want to do 
> this for my wiki, because, as the only author, I only ever intend to 
> use it for quotes. And, I quote things frequently enough that this is 
> the simplest markup I can appropriate for my uses. I don't like 
> >>angle_bracket<< markup.
I have used a custom blockquote markup for quotations:
;attribution;Quotation text
The markup rule is:
Markup('^;;', 'block', '/^;([^;]*);(.*?)$/',
     "'<:block><blockquote>'.PSS('$2').('$1' ? ' — 
<cite>'.PSS('$1').'</cite>' : '').'</blockquote>'");
It's not perfect -- if the attribution contains an HTML entity, the 
semi-colon at the end of the &...; will end the attribution too early.
To redefine the standard pmwiki markup rule, try:
$BlockMarkups['indent'] = array('<blockquote>', 
'</blockquote><blockquote>', '</blockquote>',1);
Both changes can go in local/config.php.
JR
-- 
John Rankin
    
    
More information about the pmwiki-users
mailing list