Tags:
create new tag
, view all tags

Feature Proposal: Use of tilde for unordered list without bullets

Motivation

Pressing need for both normal bullets and more customized (specifically "ordered" bullets with parentheses, and more haphazardly ordered).

Yes, we could directly put the <li> tags right in the topic, but I want to make this as easy as possible for the users, and I want them to support their topics smile

So, add a tilde ~ as an option for unordered lists, so I can do things like in the examples below.

Description and Documentation

See the motivation. I've created some hacky code to make an unordered list using a tilde rather than an asterisk. I'm just curious as to how many other things this may break.

Examples

Here is what I added to Render.pm, right after Unnumbered list elsif block:
            elsif ( $line =~ s/^((\t|   )+)\~ /<li style="list-style-type: none"> /o ) {
                # Unnumbered list
                _addListItem( $this, \@result, 'ul', 'li', $1 );
                $isList = 1;
            }
(Yes, I should use a css class instead, but I'm not smart enough for that yet).

Essentially to be able to do bullets like:

  • (1)item one
  • (3)item two

I need parentheses, and I need varied "ordering", and I want it as simple as possible for the users.

Impact

WhatDoesItAffect: Rendering

Implementation

-- Contributors: AaronLWalker - 2011-01-06

Discussion

Good point. Possibly use a more generic solution with a %LIST{ type="none" }% at the beginning of the list? See my comment at proposal OverridingNumericLists. What that fit your needs?

-- PeterThoeny - 2011-01-06

Frankly, I think I would like both solutions smile I like the ease of a single character, but I can see the value of %LIST%.

-- AaronLWalker - 2011-01-07

I set this to accepted proposal state. Please don't forget to update the docs as well.

-- PeterThoeny - 2011-02-02

 
Topic revision: r5 - 2011-08-23 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.