[#5883] Support for bullet, enumerated, definition lists
Summary Support for bullet, enumerated, definition lists
Queue Horde Framework Packages
Queue Version HEAD
Type Enhancement
State Accepted
Priority 1. Low
Owners
Requester lsmith (at) php (dot) net
Created 11/12/2007 (179 days ago)
Due
Updated 12/28/2007 (133 days ago)
Assigned
Resolved
Attachments
Milestone
Patch

History
12/28/2007 Chuck Hagenbuch Summary ⇒ Support for bullet, enumerated, definition lists
 
11/12/2007 Jan Schneider Comment #2
State ⇒ Accepted
Priority ⇒ 1. Low
Reply to this comment
True. Many things are not supported yet. Actually no one has been working on completing this package since it has initially been committed.
11/12/2007 lsmith (at) php (dot) net Comment #1
Queue ⇒ Horde Framework Packages
Summary ⇒ lists do not seem to be supported
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 3. High
Reply to this comment
require_once 'Text/reST.php';
require_once 'Text/reST/Formatter.php';

$string = "Here is a list

- foo
- bar

1. another list
1. still not working

1. this works

1. or does it?
";

$document = Text_reST::parse($string);

$formatter = Text_reST_Formatter::factory('html');
echo $formatter->format($document);