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
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
comment:3 Changed 16 months ago by cboos
- Milestone changed from 0.13 to 0.14-wikiengine



WikiEngine refactoring and related fixes postponed.