summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-04-09 23:49:58 +0200
committerchris <chris@jalakai.co.uk>2006-04-09 23:49:58 +0200
commite1c10e4d58dad58f2a8b4b121b62bd56045bf852 (patch)
tree6a6cc4e8dad2172a7257fd4ca54ef5b06b49b0dc /inc/parser/xhtml.php
parentc1b992e179931983b2b71586b99428ad98ed5d43 (diff)
downloadrpg-e1c10e4d58dad58f2a8b4b121b62bd56045bf852.tar.gz
rpg-e1c10e4d58dad58f2a8b4b121b62bd56045bf852.tar.bz2
Parser Update:
- 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
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 221e18da0..b3b341f9b 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -45,6 +45,12 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
var $store = '';
+ var $meta = array();
+
+ function meta($data) {
+ if (is_array($data)) $this->meta = $data;
+ }
+
function document_start() {
//reset some internals
$this->toc = array();
@@ -562,6 +568,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$link['more'] = '';
$link['class'] = $class;
$link['url'] = $url;
+
$link['name'] = $name;
$link['title'] = $this->_xmlEntities($url);
if($conf['relnofollow']) $link['more'] .= ' rel="nofollow"';
@@ -1060,4 +1067,4 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
}
}
-//Setup VIM: ex: et ts=4 enc=utf-8 :
+//Setup VIM: ex: et ts=4 enc=utf-8 : \ No newline at end of file