Commit 3076ed6b authored by Andreas Gohr's avatar Andreas Gohr

remove section handling

For now we ignore the handling of sections.
parent fe0e6b34
......@@ -20,7 +20,7 @@ class instructions_plugin_ifauthex_test extends DokuWikiTest
$calls = array_map([self::class, 'stripByteIndex'], $calls);
$this->assertEquals(json_decode(file_get_contents(__DIR__.'/testpage.json')), $calls);
$this->assertJsonStringEqualsJsonFile(__DIR__.'/testpage.json', json_encode($calls));
//print_r($calls);
}
......
......@@ -7,9 +7,6 @@
["p_close", []],
["plugin", ["ifauthex", [1, " admin"], 1, "<ifauth admin>"]],
["header", ["Sec 2", 3, 40]],
["p_open", []],
["plugin", ["ifauthex_closesection", [], 5, ""]],
["p_close", []],
["p_open", []],
["plugin", ["ifauthex", [3, "2def"], 3, "2def"]],
["p_close", []],
......@@ -23,9 +20,6 @@
["p_close", []],
["plugin", ["ifauthex", [1, " admina"], 1, "<ifauth admina>"]],
["header", ["Sec 4", 3, 114]],
["p_open", []],
["plugin", ["ifauthex_closesection", [], 5, ""]],
["p_close", []],
["p_open", []],
["plugin", ["ifauthex", [3, "4jkl"], 3, "4jkl"]],
["p_close", []],
......
......@@ -86,9 +86,9 @@ class syntax_plugin_ifauthex extends DokuWiki_Syntax_Plugin
$handler->_addCall('header',array($title,$level,$pos), $pos);
// close the section edit the header could open
if ($title && $level <= $conf['maxseclevel']) {
$handler->addPluginCall('ifauthex_closesection', array(), DOKU_LEXER_SPECIAL, $pos, '');
}
# if ($title && $level <= $conf['maxseclevel']) {
# $handler->addPluginCall('ifauthex_closesection', array(), DOKU_LEXER_SPECIAL, $pos, '');
# }
break;
case DOKU_LEXER_UNMATCHED:
return array($state, $match);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment