-
Notifications
You must be signed in to change notification settings - Fork 158
Markdown Nesting
Here you can find some tips about nesting elements in lists with Markdown.
Basically, to nest an element inside a list item via Markdown, you should use indentation.
* Unordered list:
* Nested unordered list;
* Second list item.
* Root item.
Result:
- Unordered list:
- Nested unordered list;
- Second list item.
- Root item.
1. Ordered list:
1. Nested ordered list;
1. Second list item.
1. Root item.
Result:
- Ordered list:
- Nested ordered list;
- Second list item.
- Root item.
It is important to note that the images are inline elements, and adding them only with one carriage return will add them in the same list item. If you need to add the image as if it is nested, add one more new line (i.e., create a new paragraph inside the list item).
* Inline image:
![Image Description](./images/html5-logo-icon.png)
* Nested image:
![Image Description](./images/html5-logo.png)
* Additional list item.
Result:
-
Inline image:
-
Nested image:
-
Additional list item.
Nesting a table can be achieved by adding indentation to all table rows.
1. List item with table
|Title|Title|
|-----|-----|
|cell |cell |
1. Second list item
Result:
-
List item with table
Title Title cell cell -
Second list item
The custom code snippets cannot be nested inside a list item, however, the native MarkDown ones—can.
It is important to always add a fake title that hints what is the code in the code snippet.
1. List item with code snippet
**ASP.NET**
<telerik:RadButton runat="server" ID="RadButton1" OnClientClicking="OnClientClicking">
</telerik:RadButton>
1. Second list item
Result:
-
List item with code snippet
ASP.NET
<telerik:RadButton runat="server" ID="RadButton1" OnClientClicking="OnClientClicking"> </telerik:RadButton>
-
Second list item
- Home
- Getting Started
- Deploying Documentation on IIS
- Git and GitHub Workflow
- Handling Redirects
- Markdown Syntax
- Markdown Nesting
- Using Git and Git Bash
- Troubleshooting
- Use VS Diff tool with Git and SourceTree
- [How to deal with the web.config size limit in order to add URL redirects](./How to deal with the web.config size limit in order to add URL redirects)