[dokuwiki] Re: List syntax

  • From: "Todd Augsburger" <todd@xxxxxxxxxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Mon, 11 Jun 2007 08:06:53 -0400

Adrian et al.

Another very simple (but perhaps less intuitive) solution is to simply use 
line breaks, like this:

  *The first line\\ And the ones\\ That follow\\ etc.

The result looks like this:

  *The first line
    And the ones
   That follow
   etc.


Todd Augsburger
todd@xxxxxxxxxxxxxxxx
Roller Organs
www.rollerorgans.com

----- Original Message ----- 
From: "Adrian Sai-wah Tam" <adrian@xxxxxxxx>
To: <dokuwiki@xxxxxxxxxxxxx>
Sent: Monday, June 11, 2007 2:00 AM
Subject: [dokuwiki] Re: List syntax


Thanks Ferdinard, I follow your pointer and coded the attached plugin
(supposed to be put on lib/plugins/mllist/syntax.php), which makes all
the lines following a bullet with 3 or more leading spaces concatenated.

Everyone please enjoy.

Regards,
Adrian.

Ferdinand Soethe wrote:
> I find Adrians proposal (make the parser understand that indented lines
> immediately following a list item) are additional lines for that list
> item) quite useful.
>
> It certainly would be more intuitive as we write lists in emails like
> that everyday.
>
> Problem would be to associate the amount of indent with a list item if
> there is more than one layer of list items such as:
>
> * dsfdsf
>   * sdfdsfasf
>     sjdklsdkjfkjdskf
>
> Perhaps you could write this as a plugin?
> The code for the creole-plugin might be a good starting point to figure
> out how to intercept normal parsing.
>
> Best regards,
> Ferdinand Soethe
>
> Adrian Sai-wah Tam wrote:
>
>> Hi,
>>
>> Sometimes, we may wrote in a list form, such as:
>> =========
>>  * This is an item
>>  * This is another item with
>>     a long line broken into two
>>  * This is the third item
>> =========
>> When we look at the source, we (human) obviously know the second and
>> third line is a single item. However, the parser don't. I would like to
>> change that (at least for my incarnation), does anyone know where to do?
>> I looked at inc/parser/xhtml.php but got no clue to do.
>>
>> - Adrian.
>>
>
>



-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: