Skip to content

Commit 08c8343

Browse files
committed
Fix md directive conflict with pulse class name @md
1 parent b0e4c25 commit 08c8343

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

resources/macros/blade.php

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
use Illuminate\Support\Facades\Blade;
44

55
Blade::directive('md', function ($expression) {
6+
7+
if (empty($expression)) {
8+
return "<?php echo '@md'; ?>";
9+
}
10+
611
return "<?php echo md_to_html($expression); ?>";
712
});
813

0 commit comments

Comments
 (0)