[pmwiki-users] Changes to markup

Ryan Varick 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?

Thanks,
Ryan



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.
>
> JR
>
> --
> John Rankin
>
>
>
> ______________________________**_________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/**mailman/listinfo/pmwiki-users<http://www.pmichaud.com/mailman/listinfo/pmwiki-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20120606/a7541124/attachment.html>


More information about the pmwiki-users mailing list