Skip to content

Commit 4e378fd

Browse files
committed
Revert "Inline local variable override"
This reverts commit d4336e4.
1 parent d4336e4 commit 4e378fd

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/framework/resources/views/components/markdown-heading.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
@php
99
$tag = 'h' . $level;
1010
$id = $id ?? \Illuminate\Support\Str::slug($slot);
11-
@endphp
1211
13-
<{{ $tag }} {{ $attributes->merge(array_merge($extraAttributes, [
12+
$extraAttributes = array_merge($extraAttributes, [
1413
'id' => $addPermalink ? $id : ($extraAttributes['id'] ?? null),
1514
'class' => trim(($extraAttributes['class'] ?? '') . ($addPermalink ? ' group w-fit scroll-mt-2' : '')),
16-
])) }}>
15+
]);
16+
@endphp
17+
18+
<{{ $tag }} {{ $attributes->merge($extraAttributes) }}>
1719
{!! $slot !!}
1820
@if($addPermalink === true)
1921
<a href="#{{ $id }}" class="heading-permalink opacity-0 ml-1 transition-opacity duration-300 ease-linear px-1 group-hover:opacity-100 focus:opacity-100 group-hover:grayscale-0 focus:grayscale-0" title="Permalink">

0 commit comments

Comments
 (0)