https://hugomods.com/bootstrap/collapse/ #960
Replies: 2 comments 8 replies
-
Hi! How can I use collapse shortcode inside/nested with another HTML element like an ordered list? Example: 1. Item 1
{{% bs/collapse "Title" primary true %}}
**markdown content collapsed inside list item 1**
{{% /bs/collapse %}}
2. Item 2 Renders to: <ol>
<li>Item 1</li>
</ol>
<div class="collapse-wrapper">...</div>
<ol start="2">
<li>Item 2</li>
</ol> How it should be: <ol>
<li>
<p>Item 1</p>
<div class="collapse-wrapper">...</div>
</li>
<li>Item 2</li>
</ol> I've tried different ways, using spaces, mixing codes, clearfix, but none of them worked. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Seems a bug, fixed since v0.20.1, however there still a problem that you cannot break line, otherwise the layout was broken. Working example as follows. 1. Item 1
2. Item 2
3. Item 3 {{% bs/collapse "Title" primary true %}}**markdown content collapsed inside list item 3**{{% /bs/collapse %}}
4. Item 4 |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://hugomods.com/bootstrap/collapse/
The collapse shortcode is used to show and hide content.
https://hugomods.com/bootstrap/collapse/
Beta Was this translation helpful? Give feedback.
All reactions