Render open-location syntax as link
Some checks failed
DokuWiki Default Tasks / all (push) Has been cancelled

This commit is contained in:
2026-01-07 11:42:40 +01:00
parent 6a396ce511
commit c5f4bcc1c5
7 changed files with 156 additions and 16 deletions

View File

@@ -245,9 +245,9 @@ class plugin_luxtools_test extends DokuWikiTest
}
/**
* This function checks that the open syntax renders an inline button.
* This function checks that the open syntax renders an inline link.
*/
public function test_open_button()
public function test_open_link()
{
$instructions = p_get_instructions('{{open>/tmp/somewhere|Open here}}');
$xhtml = p_render('xhtml', $instructions, $info);
@@ -256,7 +256,7 @@ class plugin_luxtools_test extends DokuWikiTest
$doc->html($xhtml);
$structure = [
'button.luxtools-open' => 1,
'a.luxtools-open' => 1,
];
$this->structureCheck($doc, $structure);