[pmwiki-users] writing paragraph style markup

Patrick R. Michaud pmichaud at pobox.com
Wed Feb 6 08:37:48 CST 2008


On Wed, Feb 06, 2008 at 02:22:53AM -0800, Seth Cherney wrote:
>    I am trying to write a markup which will replace the default paragraph
>    with one like <p class='mine'>

I suggest using a wikistyle.

  %define=mine apply=block class=mine%

Thereafter, you can do

  %mine%  Lorem ipsum dolor sit amet, consectetuer adipiscing 
  elit.  Aenean sed tellus nec nisl euismod mollis. Cras tincidunt 
  nisi. Sed bibendum facilisis neque. Mauris quis turpis at justo 
  cursus viverra. 

and it will come out as

  <p class='mine'>Lorem ipsum dolor sit ...

>    I have many custom markups which end at the line return, but do not know
>    how to span a line return, I have many of them by necessity in the midle
>    of paragraphs....
> 
>    E.G:
>    Markup("scholium",'inline','/!s!(.*?)$/',"<span
>    class='scholium'>$1</span>");

Note that this is also handled by wikistyles:

    %define=s class=scholium%

    %s% Hello world.

produces

    <span class='scholium'>Hello world.</span>

Pm



More information about the pmwiki-users mailing list