"Jay R. Ashworth" jra@baylink.com wrote in message news:20070803152025.GB22408@cgi.jachomes.com...
On Fri, Aug 03, 2007 at 05:14:25AM -0700, Paul Grinberg wrote:
For example, numbered lists are a perfect solution for procedure documentation. However, oftentimes it is necessary to insert a <pre>,
<div>, or even wiki-syntax table between two consecutive steps. In the current wiki implementation, Parser.php restarts the numbered list back at #1 after such an interjection. Am I missing something? Is there a mechanism to embed these (and possible other) non-numbered list items in a numbered list?
If there currently isn't a way to do so, then I'd like to see if there is currently any effort to hack/redesign the Parser to accept some new syntax (backwards compatible, of course) to allow for starting a numbered list at any user defined value? And if there isn't such an effort already, then I'd like to give it a try myself (I've looked at the code already and have a pretty good idea on how to do it).
Is it necessary to more finely granularize the RESET command? Should numbered lists be a full-fledged feature?
I think it would be useful if it was. Maybe the syntax would be something like this?
---------
# A standard list - this is item 1 # This is item 2 - Numbering is automatic, and works as it currently does.
Here is some non-list text
# This is a new list, and starts at item 1. This behaviour is unchanged. #6# This new syntax tells MW that this is item 6 (regardless of any previous numbering) # This is item 7
Here is some more non-list text
#+# This syntax continues previous numbering, so this is item 8 # item 9 # etc.
---------
I don't think that would break much (though I haven't checked) and it would be incredibly useful.
- Mark Clements (HappyDog)