buildAttributes($html_attributes) . '>';
+ if($this->wrapInner) {
+ $renderer->doc .= '
';
+ }
+
+ return true;
+ }
+
+ if ($state == DOKU_LEXER_EXIT) {
+ // TODO: only the first container gets the button at the correct spot.
+ $renderer->finishSectionEdit($pos+strlen(""));
+ if($this->wrapInner) {
+ $renderer->doc .= '
';
+ }
+ $renderer->doc .= '
';
+ return true;
+ }
+
+ return true;
+ }
+
+}
diff --git a/syntax/lightbox.php b/syntax/lightbox.php
new file mode 100644
index 0000000..844381c
--- /dev/null
+++ b/syntax/lightbox.php
@@ -0,0 +1,56 @@
+Lexer->addSpecialPattern('{{[^{}]*\.[pjg][npi][gf][^{}]*}}', $mode, 'plugin_bootstyle');
+ }
+
+ function handle($match, $state, $pos, Doku_Handler $handler){
+ echo "handle";
+ exit();
+ if ($state != DOKU_LEXER_SPECIAL) return array();
+ // $match will equal our full matching pattern, need to pull the image and size out
+ if (preg_match('/{{(.*\.[pjg][npi][gf])\??([0-9]*)x?([0-9]*)\|?(.*)}}/', html_entity_decode($match), $parts)) {
+
+ if (! $parts[2]) {
+ $parts[2] = 150;
+ $parts[3] = 150;
+ }
+ return $parts;
+ }
+
+ return array();
+ }
+
+ /**
+ * Create output
+ */
+ function render($mode, Doku_Renderer $renderer, $data) {
+ echo "render";
+ exit();
+ if ($mode == 'xhtml' or $mode == 'htmldoc') {
+ list($all, $src, $width, $height, $title) = $data;
+
+ if (! preg_match('/^https?:/', $src)) {
+ $src = DOKU_BASE . "lib/exe/fetch.php?media=$src";
+ }
+ $renderer->doc .= "