[pmwiki-users] custom markups and like breaks

John Rankin john.rankin at affinity.co.nz
Sun Aug 21 16:58:14 CDT 2005


On Friday, 19 August 2005 7:56 PM, V.Krishn <mistyfire at autograf.pl> wrote:
>> > How should a local end-of-line markup handle line breaks?
>> >
>> > I have an experimental local markup where
>> >
>> > * an item::its continuation
>> >
>> > :a term:its definition::and its continuation
>> >
>> > produce respectively
>> >
>> > <ul><li><p>an item</p><p>its continuation</p></li></ul>
>> >
>> > <dl><dt>a term</dt><dd>its definition></dd><dd>and its
>> > continuation</dd></dl>
>
>This would be really useful if one wants to have more than one 'definition' to 
>a 'term'.
>Come to think of it how about more than one 'term' to a single definition.
>eg.
>: term one::term two:its definition

You should be able to write

:term1:
:term2:its definition

Some css on the <dt> element to adjust spacing produces a reasonable result.
>
>> >
>> > This seems to be working. Local css rules adjust the
>> > inter-paragraph space. But it seems more natural to write
>> >
>> > * an item::
>> > its continuation
>> >
>> > :a term:its definition::
>> > and its continuation
>>
>> How about just eliminating any return after a double colon?
>>
>>     Markup ('::$', '<\\$', "/::\n/", '::');
>>
>> Pm
>Thanks for both the issue and the solution. It has given me
>another idea.
>:-)
>V.Krishn
>
It works and will be in the next markup extensions release.

-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list