Edgewall Software
Modify

Opened 18 years ago

Last modified 9 years ago

#3307 new enhancement

Wiki pragma directives

Reported by: Christian Boos Owned by:
Priority: normal Milestone: topic-wikiengine
Component: wiki system Version: devel
Severity: normal Keywords: pragma
Cc: Ryan J Ollos Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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)
  • Respect line breaks (we currently do that programmatically)

Implementation

There could either be a specific syntax for this (e.g. like MoinMoin 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']

Attachments (0)

Change History (6)

comment:1 by Christian Boos, 17 years ago

Milestone: 0.110.12

WikiEngine refactoring and related fixes postponed.

comment:2 by Christian Boos, 14 years ago

Keywords: pragma added
Milestone: next-major-0.1X0.13
Severity: minornormal

The suggested MoinMoin syntax could be supported if present at the start of a document. Otherwise, I think a WikiMacro would be more appropriate.

comment:3 by Christian Boos, 13 years ago

Milestone: 0.130.14-wikiengine

comment:4 by Ryan J Ollos <ryano@…>, 12 years ago

Cc: ryano@… added

comment:6 by Ryan J Ollos, 10 years ago

Cc: Ryan J Ollos added; ryano@… removed

comment:7 by Ryan J Ollos, 9 years ago

Owner: Christian Boos removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.