List Wrapper
The list wrapper component allows for more complex HTML lists to be created while retaining the ability to input markdown content into list items. While the List wrapper is the recommended way of getting complex list outputs to keep markdown rendering more cleanly, a secondary option is also available to groups more experienced with raw HTML code.
Note: all code samples in this page have had short code <
and >
characters replaced with <
and >
to ensure that it is rendered correctly in preview. When using this code, these characters should be replaced.
Custom list (raw HTML using grid/div component)
Shortcode:
{{< grid/div isMarkdown="false" >}}
<ul>
<li>
Sample nested
<ol style="list-style-type: lower-roman">
<li>Sample content as shortcodes:</li>
<ul style="list-style-type: circle">
<li>Test 1</li>
<li>Test 2</li>
</ul>
<li>Test 2</li>
<li>
<p>Sample content as markdown</p>
<ul>
<li>Test</li>
<li>Test2</li>
</ul>
</li>
</ol>
</li>
<li>Second bullet</li>
</ul>
{{</ grid/div >}}
Output:
- Sample nested
- Sample content as shortcodes:
- Test 1
- Test 2
- Test 2
Sample content as markdown
- Test
- Test2
- Second bullet
Basic unordered list
Shortcode:
{{< html/list_wrapper >}}
{{< html/li >}}Test 1{{</ html/li >}}
{{< html/li >}}Test 2{{</ html/li >}}
{{< html/li >}}Test 3{{</ html/li >}}
{{</ html/list_wrapper >}}
- Test 1
- Test 2
- Test 3
Basic ordered list
Shortcode:
{{< html/list_wrapper listType="ol" >}}
{{< html/li >}}Test 1{{</ html/li >}}
{{< html/li >}}Test 2{{</ html/li >}}
{{< html/li >}}Test 3{{</ html/li >}}
{{</ html/list_wrapper >}}
Output:
- Test 1
- Test 2
- Test 3
Basic unordered list with list style
Shortcode:
{{< html/list_wrapper listStyle="circle" >}}
{{< html/li >}}Test 1{{</ html/li >}}
{{< html/li >}}Test 2{{</ html/li >}}
{{< html/li >}}Test 3{{</ html/li >}}
{{</ html/list_wrapper >}}
Output:
- Test 1
- Test 2
- Test 3
Basic ordered list with list style
Shortcode:
{{< html/list_wrapper listType="ol" listStyle="lower-roman" >}}
{{< html/li >}}Test 1{{</ html/li >}}
{{< html/li >}}Test 2{{</ html/li >}}
{{< html/li >}}Test 3{{</ html/li >}}
{{</ html/list_wrapper >}}
Output:
- Test 1
- Test 2
- Test 3
Complex/nested lists
Example of mixed shortcode and markdown lists. Supports shortcode and markdown being fully interchangable
Shortcode:
- Sample nested
{{< html/list_wrapper listType="ol" listStyle="lower-roman" >}}
{{< html/li >}}Sample content as shortcodes:{{</ html/li >}}
{{< html/list_wrapper listStyle="circle" >}}
{{< html/li >}}Test 1{{</ html/li >}}
{{< html/li >}}Test 2{{</ html/li >}}
{{</ html/list_wrapper >}}
{{< html/li >}}Test 2{{</ html/li >}}
{{< html/li >}}Sample content as markdown
- Test
- Test2
{{</ html/li >}}
{{</ html/list_wrapper >}}
- Second bullet
Output:
- Sample nested
- Sample content as shortcodes:
- Test 1
- Test 2
- Test 2
Sample content as markdown
- Test
- Test2
- Second bullet