mirror of
https://github.com/xoofx/markdig.git
synced 2026-07-08 18:16:21 +00:00
Create a full Lunet-based documentation site in site/ with: - Site config, navigation, landing page with hero section - Core docs: getting started, usage guide, CommonMark reference - Extension docs: 19 pages covering all 30+ extensions - Developer guide: AST, pipeline, creating extensions, block/inline parsers, renderers, performance - API reference generation via lunet-io/templates - Remove obsolete parsing-*.md files (content revised into docs/) - Update AGENTS.md with website build instructions - Add site/AGENTS.md with site-specific guidance
1.1 KiB
1.1 KiB
title
| title |
|---|
| Task lists |
Task lists
Enable with .UseTaskLists() (included in UseAdvancedExtensions()).
Task lists add checkbox-style list items, inspired by GitHub task lists.
Syntax
Start a list item with [ ] (unchecked) or [x]/[X] (checked):
- [x] Write documentation
- [x] Implement feature
- [ ] Write tests
- [ ] Release
- Write documentation
- Implement feature
- Write tests
- Release
In ordered lists
Task lists also work with ordered list items:
1. [x] First task
2. [ ] Second task
3. [ ] Third task
- First task
- Second task
- Third task
HTML output
Checked items render as <input type="checkbox" disabled checked />, unchecked items as <input type="checkbox" disabled />:
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" disabled checked /> Write docs</li>
<li class="task-list-item"><input type="checkbox" disabled /> Write tests</li>
</ul>