[pmwiki-users] Changes to markup
rvarick at gmail.com
Wed Jun 6 22:22:29 CDT 2012
Thanks John. The second bit does just what I was hoping to do. Any ideas
for the first two?
On Tue, Jun 5, 2012 at 2:47 PM, John Rankin <john.rankin at affinity.co.nz>wrote:
> 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.
> John Rankin
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users