summaryrefslogtreecommitdiffstats
path: root/plugins/55/wrap/syntax/divblock.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-12-01 21:17:14 +0100
committerDaniel Baumann <daniel@debian.org>2024-12-01 22:11:34 +0100
commitcca09e0d7e47b50638809b79c1cb4f17652f986a (patch)
tree465f90f043f2408e42593b28074678acf37c5771 /plugins/55/wrap/syntax/divblock.php
parentInitial commit. (diff)
downloaddokuwiki-plugins-extra-cca09e0d7e47b50638809b79c1cb4f17652f986a.tar.xz
dokuwiki-plugins-extra-cca09e0d7e47b50638809b79c1cb4f17652f986a.zip
Adding upstream version 20241201.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'plugins/55/wrap/syntax/divblock.php')
-rw-r--r--plugins/55/wrap/syntax/divblock.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/55/wrap/syntax/divblock.php b/plugins/55/wrap/syntax/divblock.php
new file mode 100644
index 0000000..e5da725
--- /dev/null
+++ b/plugins/55/wrap/syntax/divblock.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Alternate div syntax component for the wrap plugin
+ *
+ * Defines <block> ... </block> syntax
+ *
+ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author Anika Henke <anika@selfthinker.org>
+ */
+
+class syntax_plugin_wrap_divblock extends syntax_plugin_wrap_div {
+
+ protected $special_pattern = '<block\b[^>\r\n]*?/>';
+ protected $entry_pattern = '<block\b.*?>(?=.*?</block>)';
+ protected $exit_pattern = '</block>';
+
+
+}
+