mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-06 04:01:22 -06:00
Resolve #420 - Remove `margin-top` for the first child in various list items, to improve alignment. - Add examples of lists to `docs/tests/styling`.
66 lines
1.5 KiB
Markdown
66 lines
1.5 KiB
Markdown
---
|
|
layout: default
|
|
title: Ordered lists
|
|
parent: Styling
|
|
grand_parent: Tests
|
|
---
|
|
|
|
# Ordered lists
|
|
|
|
The first child element of each `li` element in an `ol` list should be aligned with the preceding label in the following examples.
|
|
|
|
1. paragraph text
|
|
|
|
paragraph text
|
|
|
|
1. ### Header
|
|
|
|
paragraph text
|
|
|
|
1. > block quote
|
|
|
|
paragraph text
|
|
|
|
1. ```sh
|
|
fenced code block
|
|
```
|
|
|
|
paragraph text
|
|
|
|
1. + unordered list item
|
|
+ unordered list item
|
|
|
|
paragraph text
|
|
|
|
1. 1. ordered list item
|
|
2. ordered list item
|
|
|
|
paragraph text
|
|
|
|
1. term
|
|
: description
|
|
|
|
term
|
|
: description
|
|
|
|
paragraph text
|
|
|
|
1. |-----------------+------------+-----------------+----------------|
|
|
| Default aligned |Left aligned| Center aligned | Right aligned |
|
|
|-----------------|:-----------|:---------------:|---------------:|
|
|
| First body part |Second cell | Third cell | fourth cell |
|
|
| Second line |foo | **strong** | baz |
|
|
| Third line |quux | baz | bar |
|
|
|-----------------+------------+-----------------+----------------|
|
|
| Second body | | | |
|
|
| 2 line | | | |
|
|
|=================+============+=================+================|
|
|
| Footer row | | | |
|
|
|-----------------+------------+-----------------+----------------|
|
|
|
|
paragraph text
|
|
|
|
1. ***
|
|
|
|
paragraph text
|