Edgewall Software
Modify

Ticket #3307 (new enhancement)

Opened 6 years ago

Last modified 16 months ago

Wiki pragma directives

Reported by: cboos Owned by: cboos
Priority: normal Milestone: 0.14-wikiengine
Component: wiki system Version: devel
Severity: normal Keywords: pragma
Cc:
Release Notes:
API 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

Change History

comment:1 Changed 5 years ago by cboos

  • Milestone changed from 0.11 to 0.12

WikiEngine refactoring and related fixes postponed.

comment:2 Changed 2 years ago by cboos

  • Keywords pragma added
  • Milestone changed from next-major-0.1X to 0.13
  • Severity changed from minor to normal

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 Changed 16 months ago by cboos

  • Milestone changed from 0.13 to 0.14-wikiengine
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from cboos. Next status will be 'new'
The owner will be changed from cboos to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.