Lines Matching refs:this

36      * The format this renderer produces
45 $this->nodestack->addTop($node);
50 $this->nodestack->add($node);
55 $this->nodestack->drop($nodeType);
60 return $this->marks;
68 $parentNode = $this->nodestack->current()->getType();
70 $this->nodestack->drop($parentNode);
79 $this->nodestack = new NodeStack();
85 if ($this->nodestack->isEmpty()) {
86 $this->p_open();
87 $this->p_close();
89 $this->doc = json_encode($this->nodestack->doc(), JSON_PRETTY_PRINT);
93 $docNode = $this->nodestack->getDocNode();
99 $docNode = $this->nodestack->getDocNode();
106 $this->nodestack->addTop(new Node('paragraph'));
112 $this->nodestack->drop('paragraph');
118 if ($this->nodestack->current()->getType() === 'paragraph') {
119 $this->nodestack->drop('paragraph');
121 $this->nodestack->addTop(new Node('blockquote'));
127 if ($this->nodestack->current()->getType() === 'paragraph') {
128 $this->nodestack->drop('paragraph');
130 $this->nodestack->drop('blockquote');
138 if ($this->nodestack->current()->getType() === 'paragraph') {
139 $this->nodestack->drop('paragraph');
142 $this->nodestack->addTop(new Node('bullet_list'));
148 $this->nodestack->drop('bullet_list');
154 if ($this->nodestack->current()->getType() === 'paragraph') {
155 $this->nodestack->drop('paragraph');
158 $this->nodestack->addTop(new Node('ordered_list'));
164 $this->nodestack->drop('ordered_list');
170 $this->nodestack->addTop(new Node('list_item'));
173 $this->nodestack->addTop($paragraphNode);
180 if ($this->nodestack->current()->getType() === 'paragraph') {
181 $this->nodestack->drop('paragraph');
183 $this->nodestack->drop('list_item');
193 $this->nodestack->addTop(new Node('table'));
199 $this->nodestack->drop('table');
205 $this->nodestack->addTop(new Node('table_row'));
206 $this->colcount = 0;
212 $node = $this->nodestack->drop('table_row');
213 $node->attr('columns', $this->colcount);
219 $this->openTableCell('table_cell', $colspan, $align, $rowspan);
225 $this->closeTableCell('table_cell');
231 $this->openTableCell('table_header', $colspan, $align, $rowspan);
237 $this->closeTableCell('table_header');
249 $this->colcount += $colspan;
255 $this->nodestack->addTop($node);
258 $this->nodestack->addTop($node);
268 if ($this->nodestack->current()->getType() === 'paragraph') {
269 $this->nodestack->drop('paragraph');
272 $curNode = $this->nodestack->current();
275 $this->nodestack->drop($type);
290 $this->nodestack->add($node);
300 $parentNode = $this->nodestack->current()->getType();
308 $this->nodestack->addTop($node);
313 $this->nodestack->addTop($node);
318 $this->nodestack->addTop($node);
323 foreach (array_keys($this->marks) as $mark) {
326 $this->nodestack->add($node);
331 $this->clearBlock();
333 $this->nodestack->addTop($node);
334 $this->cdata($text);
335 $this->nodestack->drop('preformatted');
340 $this->clearBlock();
345 $this->nodestack->addTop($node);
346 $this->cdata(trim($text, "\n"));
347 $this->nodestack->drop('code_block');
352 $this->code($text, $lang, $file);
359 $this->nodestack->addTop($node);
360 $this->cdata(str_replace("\n", ' ', $text));
361 $this->nodestack->drop('html_inline');
366 $this->clearBlock();
369 $this->nodestack->addTop($node);
370 $this->cdata(trim($text, "\n"));
371 $this->nodestack->drop('html_block');
378 $this->nodestack->addTop($node);
379 $this->cdata(str_replace("\n", ' ', $text));
380 $this->nodestack->drop('php_inline');
385 $this->clearBlock();
388 $this->nodestack->addTop($node);
389 $this->cdata(trim($text, "\n"));
390 $this->nodestack->drop('php_block');
398 $this->clearBlock();
416 $this->nodestack->add($node);
423 $this->nodestack->addTop($footnoteNode);
424 $this->nodestackBackup[] = $this->nodestack;
425 $this->nodestack = new NodeStack();
431 $json = json_encode($this->nodestack->doc());
432 $this->nodestack = array_pop($this->nodestackBackup);
433 $this->nodestack->current()->attr('contentJSON', $json);
434 $this->nodestack->drop('footnote');
452 $this,
476 $this,
490 \dokuwiki\plugin\prosemirror\parser\LocalLinkNode::render($this, $hash, $name);
498 \dokuwiki\plugin\prosemirror\parser\InternalLinkNode::render($this, $id, $name);
503 \dokuwiki\plugin\prosemirror\parser\ExternalLinkNode::render($this, $link, $title);
508 \dokuwiki\plugin\prosemirror\parser\InterwikiLinkNode::render($this, $title, $wikiName, $wikiUri);
513 \dokuwiki\plugin\prosemirror\parser\EmailLinkNode::render($this, $address, $name);
518 \dokuwiki\plugin\prosemirror\parser\WindowsShareLinkNode::render($this, $link, $title);
524 $this->nodestack->add(new Node('hard_break'));
530 $this->nodestack->add(new Node('horizontal_rule'));
543 'renderer' => $this,
547 if ($this->nodestack->current()->getType() === 'paragraph') {
555 $this->nodestack->addTop($node);
556 $this->cdata($match);
557 $this->nodestack->drop($nodetype);
563 if(array_key_exists($smiley, $this->smileys)) {
565 $node->attr('icon', $this->smileys[$smiley]);
567 $this->nodestack->add($node);
569 $this->cdata($smiley);
578 $this->cdata($entity); // FIXME should we handle them special?
584 $this->cdata($x . 'x' . $y);
590 $this->cdata($acronym);
596 $this->cdata("'");
602 $this->cdata("'");
608 $this->cdata("'");
614 $this->cdata('"');
620 $this->cdata('"');
626 $this->cdata($link); // FIXME should/could we decorate it?
636 $this->marks['strong'] = 1;
642 if (isset($this->marks['strong'])) {
643 unset($this->marks['strong']);
650 $this->marks['em'] = 1;
656 if (isset($this->marks['em'])) {
657 unset($this->marks['em']);
664 $this->marks['subscript'] = 1;
670 if (isset($this->marks['subscript'])) {
671 unset($this->marks['subscript']);
678 $this->marks['superscript'] = 1;
684 if (isset($this->marks['superscript'])) {
685 unset($this->marks['superscript']);
692 $this->marks['code'] = 1;
698 if (isset($this->marks['code'])) {
699 unset($this->marks['code']);
706 $this->marks['deleted'] = 1;
712 if (isset($this->marks['deleted'])) {
713 unset($this->marks['deleted']);
720 $this->marks['underline'] = 1;
726 if (isset($this->marks['underline'])) {
727 unset($this->marks['underline']);
735 $this->marks['unformatted'] = 1;
737 unset($this->marks['unformatted']);