Skip to content

Commit a2718d8

Browse files
authored
fix: use InnerDeindent for filetree shortcode rendering (#613)
1 parent 2b83a37 commit a2718d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="hextra-filetree hx-mt-6 hx-select-none hx-text-sm hx-text-gray-800 dark:hx-text-gray-300 not-prose">
22
<div class="hx-inline-block hx-rounded-lg hx-border hx-px-4 hx-py-2 dark:hx-border-neutral-800">
3-
{{- .Inner -}}
3+
{{- .InnerDeindent -}}
44
</div>
55
</div>

layouts/shortcodes/filetree/folder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
<span class="ltr:hx-ml-1 rtl:hx-mr-1">{{ $name }}</span>
1313
</button>
1414
<ul data-state="{{ $state }}" class="ltr:hx-pl-5 rtl:hx-pr-5 data-[state=closed]:hx-hidden">
15-
{{- .Inner -}}
15+
{{- .InnerDeindent -}}
1616
</ul>
1717
</li>

0 commit comments

Comments
 (0)