From: Waylan L. <wa...@gm...> - 2008-10-20 14:26:37
|
On Mon, Oct 13, 2008 at 7:35 PM, Yuri Takhteyev <qar...@gm...> wrote: >> Why not just make the InlineProcessor be one of the 'postprocessors' >> and then extensions can add additional postprocessors either before or >> after it as needed? > > Good point. If we then also get rid of the > preprocessor/textpreprocessor distinction, we can just reduce it all > to three: > FYI, I just pushed the last of these changes. We now only have three types of processors: Preprocessor treap: HtmlBlock, Header, Line, Reference Treeprocessors treap: Inline, Prettify Postprocessors treap: RawHtml, AndSubstitute If anyone has the old TextPostprocessors, or either of the old postprocessors in your extensions, you'll need to make a few minor updates for things to work. InlinePatterns should be unaffected - it's just that now you can manipulate the tree before they are run if you desire. I should also mention that all this stuff is fully documented in docs/writing_extensions.txt. Any improvements, corrections, suggestions are welcome. -- ---- Waylan Limberg wa...@gm... |