[dokuwiki] event proposal : parser_text_parse
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 21 Jul 2006 03:00:33 +0100
Hi,
In order to fix a problem with the line break plugin[1] I need to ensure
a space occurs between text and line endings in the preparsed wiki data.
I can do this by using the new IO_WIKIPAGE_READ event[2] but that means
I am modifying the data when its being read for other purposes besides
parsing for display.
I think there is probably enough separation between the two uses to
warrant an event which can supply preprocessing of raw wiki data along
these lines[3] as it will also catch any inline uses of the parser.
event: PARSER_TEXT_PARSE (or perhaps PARSER_TEXT_GETINSTRUCTIONS)
data: raw wiki text
action: parse the text and generate the instructions list
preventable: ? probably
signalled: p_get_instructions
result: instruction list
Any comments?
Cheers,
Chris
[1] to avoid messing up double new lines the plugin can't grab a new
line when its the first character being processed - which also occurs
when dokuwiki syntax occurs immediately prior to a line break.
[2] great addition Ben.
[3] the recent <IF***> discussion could also make use of access to the
data immediately before it is parsed to strip out any content that
shouldn't be included.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts: