Opened 19 years ago
Last modified 10 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 , 18 years ago
Milestone: | 0.11 → 0.12 |
---|
comment:2 by , 15 years ago
Keywords: | pragma added |
---|---|
Milestone: | next-major-0.1X → 0.13 |
Severity: | minor → normal |
comment:3 by , 14 years ago
Milestone: | 0.13 → 0.14-wikiengine |
---|
comment:4 by , 12 years ago
Cc: | added |
---|
comment:6 by , 10 years ago
Cc: | added; removed |
---|
comment:7 by , 10 years ago
Owner: | removed |
---|
WikiEngine refactoring and related fixes postponed.