Wiki pragma directives
|Reported by:||cboos||Owned by:||cboos|
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.
- Section Numbering (similar to the reST's .. sectnum:: directive)
- Respect line breaks (we currently do that programmatically)
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']
Change History (4)
comment:2 Changed 3 years ago by cboos
- Keywords pragma added
- Milestone changed from next-major-0.1X to 0.13
- Severity changed from minor to normal