[Pmwiki-users] Re: indent sequence (was: Whitepaper about markup strategy)

Patrick R. Michaud pmichaud at pobox.com
Sat May 17 08:56:21 CDT 2003


On Sat, May 17, 2003 at 04:33:00AM -0500, Thomas Tyler wrote:
> 
> In my experience with my wiki authors, the : markup is used almost solely to
> indent text (which is why the markup causes problems when there are times in
> "indented" text). They don't understand that a definition list is something
> else entirely.

$DoubleBrackets["/^(-+)>/e"] = "strtr('\$1','-',':').' :'";

This will convert "->" to ": :", "-->" to ":: :", "--->" to "::: :", etc.

> I'm curious... how often is the : markup used for its intended purpose? How
> often is it used just to indent text (in which case I think blockquote may
> be the more "appropriate" HTML tag)?

Or, if you really want to use the blockquote tag:

$InlineReplacements["/^->(.*)/"] = "<blockquote>\$1</blockquote>";

Can a <blockquote> include other <blockquote> tags in HTML, to do
multiple indents?  I've never tried it.

The above modifications as written are mutually exclusive--you can do
one or the other but not both.  If you want "->" to be a blockquote
while "-->", "--->" are multiple :: : indents, use

$InlineReplacements["/^->(.*)/"] = "<blockquote>\$1</blockquote>";
$DoubleBrackets["/^(--+)>/e"] = "strtr('\$1','-',':').' :'";


Pm




More information about the pmwiki-users mailing list