[pmwiki-users] Modified (:markup:)
Neil Herber
nospam at eton.ca
Sat Mar 19 22:14:48 CST 2005
At 2005-03-19 09:57 PM -0600, Patrick R. Michaud is rumored to have said:
>On Sat, Mar 19, 2005 at 09:49:07PM -0600, Patrick R. Michaud wrote:
> > On Sat, Mar 19, 2005 at 09:12:43PM -0500, Neil Herber wrote:
> > >
> > > This is a great improvement, but (:markup:) gets fooled by enclosed
> "[=" .
> > > Perhaps the [=..=] parsing beats out the (:markup:) ... (:markupend:)
> > > parsing.
> >
> > Oh, darnit. (:markup:) gets fooled if the first non-whitespace thing
> > it encounters is a [=...=]. I'll try switching the order.
>
>...and switching the order doesn't exactly work, because one cannot
>then have a (:markup:) [=...=] block followed by a
>(:markup:) ... (:markupend:) block (the system treats it all as being
>a single markup block).
>
>I'm open for suggestions.
What if you allowed the author to define delimiter characters within the
(:markup:) directive, like this:
(:markup >>>:)
[= blah blah
more
etc =] >>>
On rendering this, it would look like so:
----------------------
[= blah blah
more
etc =]
----------------------
blah blah
more
etc
----------------------
If no characters are defined, then use the [=...=] delimiters.
This should let you (:markup:) anything that doesn't include the delimiter
string.
Neil
Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668
More information about the pmwiki-users
mailing list