Task Lists Demo
Various GFM task list patterns for testing layout and label behavior.
Simple Tasks
- [~] A pending task (not working yet)
Tasks with Block Content (Pattern A)
These have a <p> that gets converted to <label>, plus additional block content below.
-
-
print("=" * 30) print(" WELCOME") print("=" * 30)
-
-
-
input("Your name: ")and store the response in a variable
name. -
input("Your age: ")convert this to an integer and store it in
age.
-
Bare Text Tasks (Pattern B)
These have no <p> wrapper — just inline text directly after the checkbox.
Pattern B with Code Blocks
Bare text followed by a code block — the label should close before the <pre>.
-
input("How many tickets? ") -
You bought 6 ticket(s) for $30. Enjoy! -
Please enter a valid number.
Nested Task Lists
Parent tasks with child sub-tasks at multiple levels.
-
- Copy the repo URL
- Open VS Code and go to File > New Window
- Click Clone Repository, paste the URL
-
-
Mixed Content
Tasks alongside regular list items and other block content.
-
Note: Make sure you complete each step before moving on.
-
Regular list item (not a task)
-
Another regular item