Edgewall Software

Opened 17 years ago

Last modified 9 years ago

#4140 new defect

Merge OutlineFormatter into Formatter — at Initial Version

Reported by: jpereira@… Owned by: Jonas Borgström
Priority: normal Milestone: topic-wikiengine
Component: wiki system Version: 0.10.1
Severity: normal Keywords: parser formatter macro outline
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi,

Macros like the PageOutline make use of the OutlineFormatter to build a table of contents. But it seems awfully inneficient that you'll have to run through the page twice in order to do just that. How about having the standard Formatter build the outline[] array just like the OutlineFormatter does, so that one could refer to it at anytime during a macro? It'd be a really simple change too, merging both behaviours into one class. Then you'd just call the macros at the end of the wiki pages wherever you wanted an outline to be generated.

I'd be glad to submit this, if you require an extra hand,

  • Jorge Pereira

Change History (0)

Note: See TracTickets for help on using tickets.