#3307: Wiki pragma directives
-------------------------+--------------------------------------------------
 Reporter:  cboos        |       Owner:  cboos
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  0.11 
Component:  wiki         |     Version:  devel
 Severity:  minor        |    Keywords:       
-------------------------+--------------------------------------------------
 We could add pragma directives for the Wiki engine.

 This could be used to modify the way the engine behaves, as the pragmas
 are seen.

 === Use Cases ===

  * Section Numbering (similar to the reST's `.. sectnum::` directive)
 [[br]]

  * Respect line breaks (we currently do that programmatically) [[br]]

 === Implementation ===

 There could either be a specific syntax for this
 (e.g. like MoinMoin [MoinMoin:HelpOnProcessingInstructions#head-
 960b14e3643a3ae86600578a317ef2c67273a973 pragmas]), or a ![[Pragma]]`
 macro.

 The macro could be a special macro, like ![[BR]] is, or a regular macro
 once the formatter object will be given to macros.

 The macro will simply set a formatter "user property",
 e.g.
 {{{
   formatter[pragma_name] = pragma_value
 }}}

 In other parts of the engine, such properties could be explicitely
 retrieved
 e.g. in the `_heading_formatter`:
 {{{
    do_numbering = formatter['sectnum']
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3307>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to