summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
Commit message (Collapse)AuthorAge
...
* pluggable renderersAndreas Gohr2006-12-03
| | | | | | | | | | Plugins can now provide their own renderer in lib/plugins/<name>/renderer.php The class inside this file needs to inherit from Doku_Renderer and has to be called Doku_Renderer_<name> To access the renderer the export action can be used eg: ?do darcs-hash:20061203190138-7ad00-f56b470b5dd043e1168ff2101c677eb8a9851627.gz
* metadata update to support both persistent and non-persistent metadatachris2006-11-26
| | | | | | | | | | | | | | | | Key changes: - metadata stored on disk in two arrays, 'current' & 'persistent' - p_set_metadata has an additional parameter, $persistent, which defaults to true - metadata set within the renderer defaults to non-persistent - new event hook, PARSER_METADATA_RENDER, which wraps around metadata rendering process. For full details of this event refer to the event list documentation at splitbrain. The patch includes automatic conversion of metadata in current form to the new format For more details also see http://www.freelists.org/archives/dokuwiki/11-2006/msg00221.html and any follow-up messages. darcs-hash:20061126152144-9b6ab-a4e40c221e0274b13da07dc2fc1d2100f5f3a50e.gz
* code highlighting fragment cache updatechris2006-10-27
| | | | | | expire the cache if GeSHi (inc/geshi.php) has been updated since cache creation darcs-hash:20061027015051-9b6ab-f633dc5130ff23f0eb8871e4f8afb563fff3dc5b.gz
* update p_get/set_metadata to use $INFO['meta']chris2006-10-04
| | | | | | | | | | | | | This patch updates p_get_metadata() to utilise the in memory copy copy of the current page's metadata ($INFO['meta']) when appropriate. The patch also updates p_set_metadata() to synchronise any changes to the current page's metadata with $INFO['meta']. $INFO hash is updated with two new elements: 'id' darcs-hash:20061004210030-9b6ab-7eab6f933a775fe350a1fb14d1118ea77d2db919.gz
* p_get_first_heading simplificationchris2006-09-23
| | | | darcs-hash:20060923204905-9b6ab-da3e9751c07c1bd07cf6583ecc5d92c2ce95097c.gz
* parser caching updatechris2006-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch primarily updates p_cached_xhtml() and p_cached_instructions() to allow their caching logic to be surrounded by an event trigger. p_cached_xhtml() has been rewritten as the more general p_cached_output() to support other render output formats besides 'xhtml'. All calls to p_cached_xhtml() have been changed to refer to the new function. New event: name: PARSER_CACHE_USE data: cache object (see below) action: determine if cache file can be used preventable: yes result: bool, true to use cache file, false otherwise Cache operations have been generalised in a new class, cache, extended to cache_parser, cache_renderer & cache_instructions. Details can be found in inc/cache.php For handling of above event, key properties are: - page, if present the wiki page id, may not always be present, e.g. when called for locale xhtml files - file, source file - mode, renderer mode (e.g. 'xhtml') or 'i' for instructions Other changes: - cache class counts cache hits against attempts, results are stored in {cache_dir}/cache_stats.txt - adds metadata dependency to renderer page cache - replaces purgefile dependency for renderer cache with metadata 'relation references' (internal link) dependency for wiki pages only darcs-hash:20060911021418-9b6ab-19601ed194b8c8e45236ab72c3e23d78bf777e6c.gz
* GeSHi fixesAndreas Gohr2006-08-06
| | | | | | | | This fixes a bug in GeSHi which adds an addtional newline (patch sent to upstream) and makes sure the code highlighting cache honors the purge request variable. darcs-hash:20060806204258-7ad00-56ad794b90b8ad38f62e8e4d9e430a8622636bc5.gz
* strip trailing line in higlighted codeAndreas Gohr2006-07-30
| | | | | | | | | | The current code add 2 unwanted trailing lines in highlighted code. One is produced by DokuWiki's syntax and is fixed by this patch. The second one is created somewhere inside GeShi. A bug report was submitted upatream [1] [1] http://sourceforge.net/tracker/index.php?funcÞtail&aid31373&group_id4997&atidg0231 darcs-hash:20060730201442-7ad00-222a23a3bfccd7c53105e7175cdc9992be2d8076.gz
* Provide a fragment cache for GeSHi outputchris2006-07-29
| | | | darcs-hash:20060728225649-9b6ab-124a5511574bd9955f56d0426586f877b9ec66c8.gz
* additional eventschris2006-07-24
| | | | | | | | | | PARSER_WIKITEXT_PREPROCESS RENDERER_CONTENT_POSTPROCESS Both have been implemented as signals, that is without any action and therefore there will be no results during the _AFTER event darcs-hash:20060724193434-9b6ab-e48d13d06da55122e501a686f9b841f7b3c97dfe.gz
* updated hierarchical breadcrumbsAndreas Gohr2006-06-18
| | | | | | Third part of the global start series darcs-hash:20060618113532-7ad00-46a62cc819c41ead8a16bc3f6c6d1bf67d9c6bf4.gz
* Use meta data in RSS feedAndreas Gohr2006-05-28
| | | | darcs-hash:20060528133552-7ad00-8281720582dbc448534f35cc978e9c8175b54f0d.gz
* metadata enhancementsAndreas Gohr2006-04-30
| | | | | | | | | | | This adds meta data rendering to the indexer process to build missing meta data in the background. p_get_first_heading was adjusted to make use of the new meta data mechanisms A problem with unitialized arrays in p_set_metadata and PHP5 was fixed (I think) darcs-hash:20060430181740-7ad00-8952fa6beb4fadf6b4321627998442d34febfc8d.gz
* new metadata renderer; functions p_get_metadata() and p_set_metadata()Esther Brunner2006-04-15
| | | | darcs-hash:20060415104627-283c4-c7d35620fc9dbc21b8a47089692b76d35a9f9ca8.gz
* Parser Update:chris2006-04-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - revisions to header class and section handling header pattern simplified header class now writes section open and close instructions section call writer removed check for and update meta['first_header'] if required (see below) - meta instruction added written by _finalize to front of instruction stack holds first header information plugins can now write first header information, or other page meta information to this data structure. - get_first_heading updated to make use of meta['first_header'] - plugin instruction structure changed to include lexer state in the data portion of the instruction. OLD INSTRUCTION: array('plugin', array(<plugin name>,<plugin_data>,$pos), $pos) NEW INSTRUCTION: array('plugin', array(<plugin name>,<plugin_data>,$state), $pos) - block handler/call writer update to better handle plugin PTypes 'block' & 'stack'. Lexer states are mapped as follows: DOKU_LEXER_ENTER, DOKU_LEXER_SPECIAL : block_open, stack_open DOKU_LEXER_EXIT, DOKU_LEXER_SPECIAL : block_close, stack_close DOKU_LEXER_MATCHED, DOKU_LEXER_UNMATCHED : plugin must handle <p> Plugin writers can now use these PTypes as intended ! darcs-hash:20060409214958-9b6ab-cd2cef97a6a2521e3a02175075b8ff4648035f69.gz
* cleanup export mode errorsBen Coburn2006-04-09
| | | | | | | | - Using the export modes 'handler', 'lexer', 'parser', or 'renderer' now produces a nicer non-fatal error. - The export mode 'wiki' is now ignored to avoid fatal errors. darcs-hash:20060409045546-05dcb-89f4c56c23d9798f4cb2dd000804cb8c03524b6d.gz
* file cleanupsAndreas Gohr2006-02-17
| | | | | | | | | | This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
* fix for broken $conf['typography']Andreas Gohr2006-01-25
| | | | darcs-hash:20060125211620-7ad00-aecd98eba9a237f3314281c0924c1eab99dbe589.gz
* fixed a very rare problem with io_readfile and unserializeAndreas Gohr2005-11-18
| | | | darcs-hash:20051118194856-7ad00-5b7f8dea8371acd85ccfe31ac6f748cb2b619486.gz
* xhtmlsummary_patchhfuecks2005-11-07
| | | | darcs-hash:20051107000554-e96b6-1a7ae7a9d5e820d3c52629570ff33f8e75bc4a46.gz
* option for disabling debug outputAndreas Gohr2005-10-27
| | | | darcs-hash:20051027183410-7ad00-5ca48cf2d4058016f5cf07887d9eaa7b07a4043f.gz
* make sure p_wiki_xhtml does not destroy the global $IDAndreas Gohr2005-10-16
| | | | darcs-hash:20051016185709-7ad00-cf9de03231c90e1c6725fe7553909d682bca1a59.gz
* minor plugin fixes to protect against invalid/malformed pluginschris2005-08-05
| | | | darcs-hash:20050804235036-50fdc-1881a40da689bc5abbe608a2ce96a1ed192a43a4.gz
* Changed pluginloading to use referencesAndreas Gohr2005-07-30
| | | | | | | | | This patch allows the use of $this in syntax plugins to set internal variables and let them remain between handle and render calls. Even when it is possible now to use this method you should exchange data betwenn handler and render calls by using the $data array only. darcs-hash:20050730215156-7ad00-69ea79859360d9902533633395de3e1b677f6e46.gz
* DOKU_CONF define for config directory #479Andreas Gohr2005-07-29
| | | | darcs-hash:20050729155457-7ad00-94554865259e4cbd6a1c75bb62a93f37304adbf0.gz
* useheading fixes #460 #465Andreas Gohr2005-07-16
| | | | darcs-hash:20050716111225-7ad00-913c36c65ac1a985fea60eed57fc7391328bfacd.gz
* purgefile fix for non standard cachedir #429Drew Amato2005-06-28
| | | | darcs-hash:20050628193126-4d95a-ca1821ae6db6c0d7af518be19f3eb36be06ea1bf.gz
* directory cleanupandi2005-06-26
| | | | | | | | This cleans up the directory structure as discussed on the mailning list. Users should delete their previous _cache directories to recover diskspace. darcs-hash:20050626100913-9977f-83c0fdc32047db2090fc52a843ffae50cbf12248.gz
* sorting support for syntax plugins, info plugin now actually does somethingandi2005-05-21
| | | | | | | | | | | | | | | Syntax plugins now need to implement getSort() which should return a number. This number is used to add all syntax modes in the correct order. To see a list in which order current modes are loaded you can use the info plugin like this: ~~INFO:syntaxmodes~~ lists all known modes (includes existing plugins) with their sorting score ~~INFO:syntaxtypes~~ lists all syntax types and their registered modes (useful for implementing the getType() function. darcs-hash:20050521210430-9977f-2baaf6043afc6ea3fed41cdca97564218fb519c2.gz
* first attempt of syntax pluginsandi2005-05-19
| | | | | | | | | | | | | | | | The first version of the new plugin system. Syntax plugins only yet. A very simple example plugin called info (doing nothig useful yet) is included. Missing Features - Doku_Block_Handler needs work (doesn't honur plugins yet) - there is no way to specify the order of plugins and other modes yet - useful output from the info plugin - bug testing and fixing - code cleanup - documentation darcs-hash:20050519201009-9977f-f793dbfc6a39d8a9643b610927d93cd3288bdd6b.gz
* fix for p_cached_instructions with cacheforce for nonexistant cachefiles #323andi2005-05-13
| | | | | | | The above function used to return NULL if a cached copy was required but wasn't found. It now returns an empty array instead. darcs-hash:20050513122255-9977f-193fcfcc12f676f355407358c6000e4a74999c03.gz
* ~~NOCACHE~~ addedandi2005-05-01
| | | | darcs-hash:20050501193908-9977f-e65b9b9bd123efaccc167f2e1ad9a1d4f51ba681.gz
* added missing purgefile handling in xhtml cachingandi2005-05-01
| | | | darcs-hash:20050501174843-9977f-10aeb839e657f94ed9fead63db63a9b28137e3fc.gz
* just a few small fixes #299andi2005-05-01
| | | | darcs-hash:20050501161512-9977f-c74a1814bfc6844e019e27a32b2a459888172a0b.gz
* comments and cleanupandi2005-04-29
| | | | darcs-hash:20050429114925-9977f-ff5b6dcf702b533a2dd64397522da7cd7b97f092.gz
* always use cache version for useheadingandi2005-04-27
| | | | darcs-hash:20050427182837-9977f-c27ffa0d48b7592d1870da5dce3cf401a18d2476.gz
* fixed #275andi2005-04-26
| | | | darcs-hash:20050426075543-9977f-fabae0206ae90574af37bf48b56c8d962f283049.gz
* changed XHTML renderer from outputbuffering to string appending #272andi2005-04-25
| | | | darcs-hash:20050425183543-9977f-86c2d99ebfcb30849443b7bc5ef1a09859148732.gz
* finally valid XHTML againandi2005-04-24
| | | | darcs-hash:20050424132922-9977f-5e9acbeae431ca1c605169829e580bf094a09ef9.gz
* backlink with camelcase support (untested)andi2005-04-22
| | | | darcs-hash:20050422164153-9977f-443f332fa6e591dfa352448ceb5dd24811d227a2.gz
* fixes for the exportandi2005-04-19
| | | | darcs-hash:20050419185603-9977f-4bc9a1ba1878436bd71795c5d7fec2a5582561bf.gz
* fixed email links #259andi2005-04-18
| | | | darcs-hash:20050418184011-9977f-acd3a6583e08ce3732af5ffc4fdc3027e284173e.gz
* Support for useheading with new parserjan2005-04-16
| | | | darcs-hash:20050416211422-45605-fe8c790a6b317dc9c35a63d78c6367248cc01045.gz
* fixed previewandi2005-04-17
| | | | darcs-hash:20050417154042-9977f-a599079671a126c53c508de5ac1ea5da734c933d.gz
* new parser now default, caching addedandi2005-04-16
darcs-hash:20050416171733-9977f-61a66a56862c4126c6987cdc19609b4e5504da9b.gz