1<?php
2/**
3 * TocTweak plugin for DokuWiki; Syntax inlinetoc
4 * render toc inside the page content
5 *
6 * provide compatibility for Andreone's inlinetoc plugin
7 * @see also https://www.dokuwiki.org/plugin:inlinetoc
8 *
9 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
10 * @author     Satoshi Sahara <sahara.satoshi@gmail.com>
11 */
12
13require_once(dirname(__FILE__).'/metatoc.php');
14
15class syntax_plugin_toctweak_inlinetoc extends syntax_plugin_toctweak_metatoc {
16
17    protected $pattern = array(
18        5 => '{{INLINETOC\b.*?}}',  // DOKU_LEXER_SPECIAL
19    );
20    protected $tocStyle = array(  // default toc visual design
21        'INLINETOC' => 'toc_inline',
22    );
23}
24