Skip to content

Commit 5361e46

Browse files
committed
Fix HTML support in snippet properties
1 parent 5a74c82 commit 5361e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/SnippetParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected static function extractSnippetsFromMarkup($markup, $theme)
7373
: $value;
7474
};
7575

76-
if (preg_match_all('/\<figure\s+[^\>]+\>[^\<]*\<\/figure\>/i', $markup, $matches)) {
76+
if (preg_match_all('#<figure\s+.+>[^<>]*</figure>#i', $markup, $matches)) {
7777
foreach ($matches[0] as $snippetDeclaration) {
7878
$nameMatch = [];
7979

0 commit comments

Comments
 (0)