1
0
mirror of https://github.com/thangisme/notes.git synced 2024-10-31 20:37:18 -04:00
notes/docs/ui-components/lists.md

100 lines
1.3 KiB
Markdown
Raw Normal View History

2018-11-16 10:57:07 -05:00
---
layout: default
title: Lists
parent: UI Components
nav_order: 5
---
# Lists
2019-01-14 14:18:09 -05:00
{: .no_toc }
2018-11-16 10:57:07 -05:00
## Table of contents
{: .no_toc .text-delta }
1. TOC
{:toc}
---
2019-01-14 14:32:41 -05:00
Most lists can be rendered with pure Markdown.
2018-11-16 10:57:07 -05:00
## Unordered list
2019-01-14 14:18:09 -05:00
2018-11-16 10:57:07 -05:00
<div class="code-example" markdown="1">
- Item 1
- Item 2
- Item 3
_or_
* Item 1
* Item 2
* Item 3
</div>
```markdown
- Item 1
- Item 2
- Item 3
_or_
* Item 1
* Item 2
* Item 3
```
## Ordered list
2019-01-14 14:18:09 -05:00
2018-11-16 10:57:07 -05:00
<div class="code-example" markdown="1">
1. Item 1
1. Item 2
1. Item 3
</div>
2019-01-14 14:18:09 -05:00
```markdown
2018-11-16 10:57:07 -05:00
1. Item 1
1. Item 2
1. Item 3
2019-01-14 14:18:09 -05:00
```
2018-11-16 10:57:07 -05:00
## Task list
<div class="code-example" markdown="1">
- [ ] hello, this is a todo item
- [ ] hello, this is another todo item
- [x] goodbye, this item is done
</div>
2019-01-14 14:18:09 -05:00
```markdown
2018-11-16 10:57:07 -05:00
- [ ] hello, this is a todo item
- [ ] hello, this is another todo item
- [x] goodbye, this item is done
2019-01-14 14:18:09 -05:00
```
2018-11-16 10:57:07 -05:00
## Definition list
2019-01-14 14:32:41 -05:00
Definition lists require HTML syntax and aren't supported with the GitHub Flavored Markdown compiler.
2018-11-16 10:57:07 -05:00
<div class="code-example" markdown="1">
<dl>
<dt>Name</dt>
<dd>Godzilla</dd>
<dt>Born</dt>
<dd>1952</dd>
<dt>Birthplace</dt>
<dd>Japan</dd>
<dt>Color</dt>
<dd>Green</dd>
</dl>
</div>
```html
<dl>
<dt>Name</dt>
<dd>Godzilla</dd>
<dt>Born</dt>
<dd>1952</dd>
<dt>Birthplace</dt>
<dd>Japan</dd>
<dt>Color</dt>
<dd>Green</dd>
</dl>
```