summaryrefslogtreecommitdiff
path: root/inc/parser
Commit message (Collapse)AuthorAge
* fix for reversed RSS feeds #918Andreas Gohr2006-09-24
| | | | darcs-hash:20060924101329-7ad00-acff05b813c58ac7ddb98385c9970800af7aca6b.gz
* minor bugfix and boring error removalchris2006-09-23
| | | | darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz
* parser update, add 'rss' to block mode lists, see FS#888.chris2006-09-17
| | | | darcs-hash:20060917211445-9b6ab-ae454dbf55ef50d664a80afd32fd42667f438ba5.gz
* removed superfluous <br /> after inline tablesAnika Henke2006-09-03
| | | | darcs-hash:20060903193759-d5083-276d7cb9622d9a009de2aedca8bfba880c3ffbdd.gz
* update backlink search to use metadatachris2006-09-01
| | | | darcs-hash:20060901002016-9b6ab-716518138edf541a869510d7c2934b9474547fc3.gz
* no forcing of ASCII in section IDsAndreas Gohr2006-08-25
| | | | | | | XHTML allows non-ASCII chars in ids and names, so there is no need to forcibly romanize section header ids darcs-hash:20060825173653-7ad00-f982cec893cc2d0f1b2de4226879d7d2b294ac76.gz
* more unit test fixeschris2006-08-09
| | | | | | - move parser.test.php darcs-hash:20060809192115-9b6ab-973fea51fbfdcf5f44a2ac66000f2ccb5fdd43b4.gz
* cleanID unit testschris2006-08-09
| | | | | | | + fix missing utf8 deaccent character mapping + set utf-8 charset for HTMLReporter (unit tests) darcs-hash:20060809160209-9b6ab-26c80a4830643b9790536f6d3a4adee0f451e4f0.gz
* fix for footnote nestingchris2006-08-09
| | | | darcs-hash:20060809155417-9b6ab-c88a818425487cac0cd1f8d7cd266ac088bba16c.gz
* more unittest updateschris2006-08-05
| | | | darcs-hash:20060805082442-9b6ab-8447755da8c66c5cfc3ee0df0f8bb97375a2a1ff.gz
* fix for bug #701, lists in footnotes in listschris2006-08-05
| | | | | | | | | | | | | | | | added Doku_Handler_Nest class & "nest" render instruction These allows render instructions to be nested within the "nest" render instruction, isolating them from the outer list of render instructions. Not being able to do this is a particular problem for the current Doku_Handler_* classes as they process the list of intructions generated during their life without any recognition that some of the instructions may not belong to them being nested within another syntax mode. This also makes it easier for plugins to generate cacheable nested instructions rather than using the expensive p_render() function which has to create a new renderer. darcs-hash:20060804220100-9b6ab-ccd051e287af45afacdb1efecb8d9beb376276cb.gz
* unittest fixeschris2006-08-04
| | | | darcs-hash:20060804142243-9b6ab-d208f7f1a67a9958fda05c519c8407ad5e733cea.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
* fixing undefined variablesBen Coburn2006-07-10
| | | | | | | Fixing undefined variable notices and sometimes the underlying error that produced them. darcs-hash:20060710114655-05dcb-073948171847f1f43f153e96c8382abd421da36a.gz
* error reporting E_ALL switchBen Coburn2006-07-08
| | | | | | | | | | | - Adds a constant DOKU_E_LEVEL for globally overriding the error reporting level. - Adds a file based switch for enabling E_ALL errors without changing the code. This is convenient for developers debugging new patches. It also ensures that the new patch will not accidentally record manual changes to the error reporting level. To enable E_ALL errors globally, create the file 'conf/report_e_all'. darcs-hash:20060707232525-05dcb-0f24e53783f546a83268fe40b0d8b68f4d6ccfa6.gz
* fixing edit section bugsBen Coburn2006-06-18
| | | | | | | | | | - Final edit section now ignored when there is only one header. - The configuration property 'maxseclevel' is now honored again. - Instructions are not created by the handler for edit sections that have a level higher than 'maxseclevel'. These ignored edit sections are merged into the previous edit section. darcs-hash:20060617223723-05dcb-a1282e827468de00977179c8c8924fb00ec2d56c.gz
* create correct titles for namespace linksAndreas Gohr2006-06-17
| | | | | | Second part of the global start patch series :-) darcs-hash:20060617111153-7ad00-1422551ec64ac84f473a8a5f3adb9cb332bb3f06.gz
* Updated SimplePie to beta2Andreas Gohr2006-06-07
| | | | darcs-hash:20060607203012-7ad00-39f08d985ed975b9eb521aaa1f7d3d315b5e6588.gz
* reset title in metadata rendererAndreas Gohr2006-06-07
| | | | darcs-hash:20060607073358-6e07b-90180a3098b55c577c49d5e182839bfb1298d1c1.gz
* bug#701 - partial fixchris2006-06-06
| | | | | | | | | | | | | | | | This patch resolves issues with how call writers merge their instructions into the main handler instruction list. - writeCalls will now only merge instructions into the list of the next higher call writer - all call writers have been given a finalise() method to use when the call writer needs to be terminated gracefully at the end of parsing when the wiki markup didn't provide its expected exit syntax. I have only tested finalise with lists. It still requires testing with wiki markup which results in improperly closed tables, quotes and preformatted text (it may not be possible to improperly terminate some of these syntax modes). darcs-hash:20060606131200-9b6ab-1fcde7e25e173de014e2f99bfdee22279b2d911d.gz
* tidy format patternschris2006-06-01
| | | | | | | | The bug preventing use of '<' & '>' in look ahead patterns was fixed some time ago. This patch replaces the '\x3C' & '\x3E' in those syntax pattern where they were still in use. darcs-hash:20060601101231-9b6ab-4ad0d61578710543063a5de053c3d0f2065a7ddf.gz
* bug#811chris2006-05-30
| | | | darcs-hash:20060530113123-9b6ab-076ed03543c92413e6317992d9cb2f32534b42c3.gz
* update header test cases 20060526Ben Coburn2006-05-26
| | | | | | | Also resolves a small p_close anomaly introduced when section edits were given their own instruction. darcs-hash:20060526170229-05dcb-9509e939b923fe966b901fe5d90ba499828a56c1.gz
* decouple section edit from header in rendererBen Coburn2006-05-22
| | | | | | | | | | | | | | | | | | | | This patch achieves a partial decoupling of the section edit buttons from the header syntax. A new 'section_edit' instruction is added to the instruction list. The default set of these instructions is generated from the header handler and the _finalize function. A generic 'section_edit' renderer is now part of the renderer. To rewrite the section semantics, add, or remove section edit buttons the header handler and renderer no longer need to be modified. Changes can be dynamically made to the section edit buttons through the 'PARSER_HANDLER_DONE' action event. An action plugin that registers this event can then modify the calls list of the handler object before it is rendered. In short, this patch makes it possible to change the behavior of the section edit buttons without having to change unrelated code. This patch should be entirely transparent to DokuWiki users and cleanly written plugins. darcs-hash:20060522060004-05dcb-8e6b5215e1b610877f126ca0b9e1e5bc21cc6469.gz
* metadata hnalding updates, header fixesAndreas Gohr2006-05-07
| | | | | | | | This removes the meta instruction again in favour of the new meta renderer. Most tests work now again, a few tweaks were done on the header handler to render certain headers as it did in earlier versions. darcs-hash:20060507153113-7ad00-bd299fbe1762482c72d109f9bca776f12bcea7c8.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
* event system revisionchris2006-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a major revision of DokuWiki's event system. There are changes to class names, function names, function parameters and their order and event names. For action plugin writers the following changes are important: - <event_name> is no longer signalled, only <event_name>_BEFORE and <event_name>_AFTER. - note the case change for _BEFORE and _AFTER - calling stopPropagation while processing a _BEFORE signal no longer prevents an _AFTER signal. The events _continue value is reset before the _AFTER signal is made. - events have a new readonly property, canPreventDefault. This lets the event handling hook know whether or not the event honours preventDefault calls. - parameters have changed for the register_hook method, parameters are now $event_name, $advise (can be 'BEFORE' or 'AFTER') $object $method $param (this parameter is now optional) - parameter order has changed for the hook event handler callback functions &$event $param (can now be left off) Event names have changed, they are now structured <dokuwiki name>_<event data name>_<action_name or state if no action> DOKUWIKI_START darcs-hash:20060424220152-9b6ab-00e366288f7ec8a85b85dc83694a5f43a07aa082.gz
* new metadata renderer; functions p_get_metadata() and p_set_metadata()Esther Brunner2006-04-15
| | | | darcs-hash:20060415104627-283c4-c7d35620fc9dbc21b8a47089692b76d35a9f9ca8.gz
* event HANDLER_FINALISEDchris2006-04-14
| | | | | | | | | | | | | | | This event is advisory only. Event data is the handler object. There is no default action to prevent. The event is signalled by the handler during its finalisation of the instruction list. At the time of signalling the instruction list is complete except for three instrucitons, meta, document_start & document_end. Syntax plugins could register for this event to finalise processing of their data knowing it is complete, e.g. an alternate footnote plugin. darcs-hash:20060414201101-9b6ab-eba2d096ed3b82e1ec6b24ee90caaa9849f16093.gz
* feed aggregation revampedAndreas Gohr2006-04-14
| | | | | | Feeds are now parsed with SimplePie. The feed syntax was enhanced darcs-hash:20060414110047-7ad00-6dd4b96845baab8683a2f837d6ad6fcb2fd53131.gz
* even faster header parsing using strspnAndreas Gohr2006-04-12
| | | | darcs-hash:20060412184125-7ad00-e51f8d531bf3011d230f62cb99fd18de8f150c41.gz
* releaxed header syntaxAndreas Gohr2006-04-11
| | | | darcs-hash:20060411182721-7ad00-0f34803c6228eb2918f0049284e6290a47ce51bd.gz
* reverted method to determine the header levelAndreas Gohr2006-04-10
| | | | darcs-hash:20060410194333-7ad00-abb8bc33f647ccd8587edbcc151bc60895dd3ae0.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
* make sure the parser works if acronym file is missing #716Andreas Gohr2006-03-17
| | | | | | Parser don't longer breaks if no smileys, acronyms or entities are configured darcs-hash:20060317182631-7ad00-090248bae8cdeaa19127251e46dfaef80ef49f58.gz
* xhtml.php fix for recent <p>..</p> removal regexchris2006-03-14
| | | | darcs-hash:20060314152807-9b6ab-55f44121650def9bdc8dc00f30876baed1b37f9a.gz
* empty paragraph fixup for XHTML rendererAndreas Gohr2006-03-11
| | | | | | as discussed on the mailinglist darcs-hash:20060311201015-7ad00-2eef847a38e711411be8fbac41c5a2cc7328886f.gz
* Fix toc indentation for toptoclevel > 1jan2006-03-10
| | | | darcs-hash:20060310155752-45605-05a5e1641c314edb38a46d4d6f1145ad62e932a1.gz
* LDAP URI support for parserGuy Brand gb@isis.u-strasbg.fr2006-03-11
| | | | | | Add parser detection for LDAP URI scheme as specified in RFC 2255 darcs-hash:20060311130311-c47a2-fd0b1e2a6ba50e4c76732101966dcb27c42a178f.gz
* lexer fix, change order of escaping . & \chris2006-03-03
| | | | darcs-hash:20060303100006-9b6ab-2598a779d472cd48c1a06801871a45fef09f90bf.gz
* small patch for unique idsAndreas Gohr2006-03-02
| | | | darcs-hash:20060302135001-6e07b-61d47e4a3438d14aef16772a04a3bbfd07e91e0d.gz
* fixed Call to undefined function: html_buildlist in the feedAndreas Gohr2006-02-28
| | | | darcs-hash:20060228210711-7ad00-316b48e7a541446e9778368b8d72fc5c11da16fd.gz
* changed IDs to avoid name clashesAndreas Gohr2006-02-26
| | | | darcs-hash:20060226172332-7ad00-f073117ba2f027935f87cf23106bf6a4316a5790.gz
* parse error in renderer fixedAndreas Gohr2006-02-24
| | | | darcs-hash:20060224154748-7ad00-dc2e34203914bb51b622fc5c7eeac81b9118071f.gz
* removed deprecated TOC codeAndreas Gohr2006-02-24
| | | | darcs-hash:20060224151221-7ad00-314d411cb22d2cd59079751f31cf4b4c49a7f0b6.gz
* endless loop fixed #727Andreas Gohr2006-02-23
| | | | darcs-hash:20060223205726-7ad00-9f68c6bb78a495b1a3b67835927a9d5452d05945.gz
* some TOC fixesAndreas Gohr2006-02-19
| | | | darcs-hash:20060219164726-7ad00-eb637e1db83e2f3b6c3629da18214b6587590b24.gz
* create unique IDs for sectionsAndreas Gohr2006-02-19
| | | | | | | | | | | | | | | | | | | | This patch finally completes the support for unique section IDs. To achive this the mechanism how the TOC is build was changed. The TOC now is build in the renderer only. Currently the TOC will be rendered in the end_document function and is then prepended to the doc. This should ensure compatibility with the rest of the code. Adding support for separating the TOC from the page should now be a simpler task in the future. TODO: - Update base class - remove commented old TOC code - make sure no other parts of the code use any of the old TOC code darcs-hash:20060218230744-7ad00-40c5463d93f8ae1c543fb4fed747b2047b4c1302.gz