summaryrefslogtreecommitdiff
path: root/inc/parser/renderer.php
Commit message (Collapse)AuthorAge
* rowspan with ::: implemented in parser/handlerhakan.sandell2009-11-03
| | | | darcs-hash:20091103161002-9a5f4-2114938a7e62a924b9fe424b63584a4747286563.gz
* enhanced <code> and <file> syntaxAndreas Gohr2009-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore-this: 80398f84222bec1fce56eee8f107d37a This patch enhances the code and file syntax with several new features. 1. code and file are now essentially the same and just differ in the class name. This means you now can use the file syntax with syntax highlighting as well. This also solves problems where the code to highlight already contains a <code> tag (FS#1493) 2. a filename can be given as label for the code or file block. It is specified as second parameter after the language: <code html myfile.html>...</code> If no highlighting is wanted, but a filename shall be given, you can use a dash as language: <code - somefile.foo>...</code> 3. when a filename was given (as shown above), the label links to a download of the code given in the code/file block. This is made possible by a new renderer in inc/parser/code.php. The basename of given filename is suggested as filename when downloading. darcs-hash:20090726175158-7ad00-969641a06ae1393a6d99207c3cd938fb67f23a71.gz
* added (empty) rss() function to basic rendererAndreas Gohr2009-01-30
| | | | | | Ignore-this: 159107eba3e7c8c1d2671ce93eb9bc4e darcs-hash:20090130083215-7ad00-8ab2440fdd4a9c9e7790ee219e9a0e6c7588ddd8.gz
* removed some illogical path setupsAndreas Gohr2008-12-13
| | | | darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
* Add support for plugin renderers to replace standard renderersChris Smith2008-03-12
| | | | | | | | | | | | | | | | | | | This patch is the fourth in a series aimed at making it easier for DW to allow plugins to modify the standard handling of line-breaks. It adds: - new config setting 'renderer_xhtml', default value 'xhtml' - new renderer method 'reset()' which is used by reusable renderers when used to render second and subsequent data. (*) An extra step has been added to the renderer selection process. - check $conf["renderer_$mode] for renderer name. If it doesn't exist use $mode as the renderer name. (*) It maybe that the 'document_start()' method can be used for this. However the current xhtml does not correctly reset itself for reuse. darcs-hash:20080312005647-f07c6-ff2cb960c05927f5c6f3e916a364fcad470c2ce3.gz
* don't use realpath() anymore (FS#1261 and others)Andreas Gohr2007-09-30
| | | | | | | | | | | The use of realpath() to clean up relative file names caused some trouble in certain setups relying on symlinks or having restricitve file structure setups. This patch replaces all realpath() calls with a PHP only replacement which should solve those problems. darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
* added block mode for embedded html+php (FS#541) -- same syntax but in ↵Anika Henke2007-05-18
| | | | | | capital letters (<HTML>+<PHP>) darcs-hash:20070517233213-d5083-9dbccf77383575912ad75533ca690302557e0f79.gz
* distinction between apostrophes and single quotes FS#1127Andreas Gohr2007-05-13
| | | | | | | | | | This patch adds another parser mode for apostrophes. Now single quote closing markers are handled different from apostrophes for better local typograpy support. Needs testing and languages updates. darcs-hash:20070513084024-7ad00-d20fe093a093c265d357b178e199c1596b484996.gz
* added getFormat() function to rendererAndreas Gohr2007-03-03
| | | | | | | | | | | Each renderer has to supply a getFormat() function returning the format it produces. Usually this is the same as the classname of the renderer (or Plugin) says but it does not need to be necessarily. Fixes a problem with the wrong format being reported to plugins when a render plugin was used. darcs-hash:20070303214102-7ad00-3f87d8a10e94f4c6c30bacc8f43486b94ecdb146.gz
* Fix namespace links and titles (FS 1005, 1006)Guy Brand2007-02-17
| | | | darcs-hash:20070217220746-19e2d-76c857902d24301707eb783ced96f25c00526659.gz
* refactor renderer header() to separate out adding toc itemschris2007-02-06
| | | | | | | | | | adds a new render method toc_additem($id, $text, $level) This allows toc items to be added separately from the header() function, allowing plugins to generate their own table of content items without having to copy dw core code (which may in the future change). darcs-hash:20070206014821-9b6ab-218184e543f6b348e710acc2fe30a8ec329c66a8.gz
* moved interwiki resolve logic to base renderer classAndreas Gohr2007-01-24
| | | | darcs-hash:20070124111438-6e07b-7d3e534aa7eff56821bf94232fea7711c5881719.gz
* move title function to base rendererAndreas Gohr2007-01-23
| | | | darcs-hash:20070123083854-7ad00-b2a6723121ed82076a04c5956ecdbf22ec5aede7.gz
* Renderer now inherits from Doku_PluginAndreas Gohr2007-01-20
| | | | | | This makes typical plugin functions available to render plugins. darcs-hash:20070119234945-7ad00-2ecc67ca68c85cfdd67718d147587f2f5ecb317a.gz
* added missing functions to renderer base classAndreas Gohr2007-01-15
| | | | darcs-hash:20070115201107-7ad00-a393183d8bc36296678f3f76adc43b5d5bec35a1.gz
* tf_rename_lower.patchhenning.noren2007-01-03
| | | | | | | Name the TRUE/FALSE-constants consistently as lowercase everywhere. This might also be an tiny optimization in some environments. darcs-hash:20070103205700-d2a3e-e7ec0aedb938d563f583116a2d5b17f3a3fea36c.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
* 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
* 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
* some TOC fixesAndreas Gohr2006-02-19
| | | | darcs-hash:20060219164726-7ad00-eb637e1db83e2f3b6c3629da18214b6587590b24.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
* minor fixes to base Renderer classchris2005-08-15
| | | | darcs-hash:20050814221006-50fdc-fab19511d4bf55007c89c6fdca4179284da80efc.gz
* renderer update, move plugin() method from xhtml to rendererchris2005-08-13
| | | | darcs-hash:20050813182213-50fdc-e1d2529944785b0e39bbd58a184c12d120ff1149.gz
* ~~NOCACHE~~ addedandi2005-05-01
| | | | darcs-hash:20050501193908-9977f-e65b9b9bd123efaccc167f2e1ad9a1d4f51ba681.gz
* removed closing php tag for includesandi2005-04-13
| | | | darcs-hash:20050413175338-9977f-c969db6f86df5df175db9a39b4fabb9f072f8f67.gz
* new parser: code for section editing addedandi2005-04-10
| | | | darcs-hash:20050410175916-9977f-92bd9f70d66160b0f6188f42870d12b2e0964077.gz
* new parser: correct pageresolving for internal linksandi2005-04-02
| | | | darcs-hash:20050402154829-9977f-f9576f4bafed9cbc9c15f14a41ad3410ec5c5970.gz
* new parser added (define DOKU_USENEWPARSER to use it)andi2005-03-31
darcs-hash:20050331145749-9977f-f011ea6c65a278197e9087b685c635c60a204cd2.gz