I think I’ve discovered a regression in 0.55.x (I’ve tested .5, .4, and .0) versus 0.54, for the following:
I have the following asciidoctor markup enclosed in a shortcode so that readers can expand and collapse a very large table (only a small part shown here).
If I run this using Hugo’s server in .54, I see the results in this screen shot…
If I run this using 0.55.x, I see the results in this screen shot: Notice that the expand/collapse prompt is gone, replaced by the actual shortcode contents and the table:
The contents in question and the shortcode are shown in the following snippets.
Is this a regression, or has something deliberately changed that I didn’t account for?
{{% expand "Show/Hide Table" %}}
[.table]
.Time zones
[width=20%]
[.table-stripes, cols="^.<100", options="header"]
|===
| **Time zone**
| Africa/Abidjan
| Africa/Accra
| Africa/Addis_Ababa
| Africa/Algiers
| Africa/Asmara
| Africa/Asmera
The definition of expand.html
is taken from the docdock
theme:
<div class="expand">
<div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('.expand-
content').slideToggle(100,function () {$h.children('span#chevron').attr('class',function () {return
$h.next('div').is(':visible') ? 'fa fa-chevron-down' : 'fa fa-chevron-right';});});">
<span id="chevron" style="font-size:x-small; border-bottom: 1px solid black;" class="fas fa-
chevron-right"></span>
<span style="font-weight: bold; font-size: 1.2em; border-bottom: 1px solid black;">{{ .Get 0 }}
</span>
</div>
<div class="expand-content" style="display: none;">
{{.Inner | safeHTML}}
</div>
</div>