Move a Line in a Markdown List and Its Children May Come Along, and the Blank Line You Left Never Split the List
Press Move Line Up on a Markdown list item and, in an editor that works by items, the lines nested under it travel too. The editor decides what an item is from the file's structure — and in CommonMark a blank line does not end a list. Two groups with a gap between them are one list.1
Here is the note most people have in mind when this bites:
- [ ] Read
- [ ] Work
- [ ] Study 1
- [ ] Study 2
The author sees two checklists. In a receipt run on 23 November 2026, all eight Markdown engines we tested saw one list with four items. A second blank line changed nothing.2
This came to a head in November 2026, when Obsidian 1.15.0 shipped a change: "With Smart lists turned on, indenting, unindenting, or moving a list item up or down now also moves the items nested under it."3 Five forum threads followed, with 1,723 views by 23 November.4 Version 1.15.1 then stopped the behaviour "where text is selected."5 The app is the trigger, not the subject — the same thing happens in any editor that moves items rather than lines.
What follows is the rule underneath — what a list is, where it ends, and what a "move" carries — then a receipt anyone can rerun, and the splitters that work.
Two checklists on screen, one list in the file
Write two short checklists with a blank line between them and you see two lists. The parser sees one. In all eight engines we tested, one or two blank lines between the groups produced a single list element, and seven of the eight wrapped every item in a paragraph. CommonMark calls this a loose list.2
Here is what commonmark.js 0.31.2 — the reference JavaScript parser — returns for the note above:
<ul>
<li>
<p>[ ] Read</p>
</li>
<li>
<p>[ ] Work</p>
</li>
<li>
<p>[ ] Study 1</p>
</li>
<li>
<p>[ ] Study 2</p>
</li>
</ul>
One <ul>, four <li>, four <p>. The checkboxes print as [ ] here because task lists are a GitHub extension, not core CommonMark; the GFM engines in the receipt drew real checkboxes, and the list counts came out the same.2
The paragraph wrapping is old behaviour. John Gruber's original syntax page says it plainly: "If list items are separated by blank lines, Markdown will wrap the items in <p> tags in the HTML output."6 Those paragraphs are the only visible trace of the blank line — a little extra space around every item, in both groups.
Not every engine spreads it evenly. Python-Markdown 3.8 wrapped only the two items beside the blank line — and still made one list.2
Some apps hide the trace altogether. A moderator on the Obsidian forum explained the reporter's case as "a lesser known feature of Markdown called “loose lists”" and added: "So your lists separated by blank lines are actually a single list."7 The same post notes that the app now suppresses the paragraph spacing in such lists by default. On screen, then, a loose list need not look loose.
What "move line" moves: a line, or an item
A move command inside a list can mean two things. A code editor moves the line: VS Code's Move Line Up is a text command with no idea what a list item is. An outliner moves the item and everything nested under it. Org mode ships both behaviours, on separate keys, and documents which one each key does.
VS Code's default keybindings list the command as "Move Line Up ⌥↑ (Windows, Linux Alt+Up) editor.action.moveLinesUpAction", next to "Indent Line ⌘] (Windows, Linux Ctrl+]) editor.action.indentLines".8 Both work on lines of text. A list item with three children under it is, to these commands, one line followed by three others.
Org mode, the outliner built into Emacs, takes the other view. Its manual for version 9.8 describes M-UP and M-DOWN as "Move the item including sub-items up/down, i.e., swap with previous/next item of same indentation. If the list is ordered, renumbering is automatic."9
Org also separates indenting an item from indenting its subtree. M-LEFT and M-RIGHT "Decrease/increase the indentation of an item, leaving children alone." M-S-LEFT and M-S-RIGHT "Decrease/increase the indentation of the item, including sub-items."9 Two keys, two units.
| Editor and command | What it moves | Source |
|---|---|---|
VS Code Move Line Up / Down (editor.action.moveLinesUpAction) | the line or lines | 8 |
VS Code Indent Line (editor.action.indentLines) | the line or lines | 8 |
Org mode M-UP / M-DOWN | the item and its sub-items | 9 |
Org mode M-LEFT / M-RIGHT | the item; children left alone | 9 |
Org mode M-S-LEFT / M-S-RIGHT | the item and its sub-items | 9 |
| Obsidian 1.15.0 move / indent, Smart lists on | the item and its nested items | 3 |
| Obsidian 1.15.1, text selected on the line | that line | 5 |
This is a design choice, not a ranking — each unit is right for some edit.
Both readings hold
The forum threads show both sides holding. The reporter of the lead request wrote: "The keyboard shortcut is “Move Line” not “Move item, and it’s nested components, and don’t leave the list”".7 A second user put it as a rule: "Moving one line should mean moving exactly one line, not moving an arbitrary number of lines at once based on the surrounding list structure."10
A third asked for "one to simply move the line, regardless of the list structure, and another for the smart list moving".10 That is Org's two-key design, arrived at again from first principles.
Why a blank line never ends a list
Under the CommonMark spec, blank lines between items change how a list looks, not where it ends. The spec allows any number of blank lines between items and calls the result loose. Older versions ended a list at two blank lines; that rule was removed in 2016, and none of the eight engines we tested follows it.
The current definition, in CommonMark 0.31.2 (28 January 2024), is one sentence: "A list is loose if any of its constituent list items are separated by blank lines, or if any of its constituent list items directly contain two block-level elements with a blank line between them. Otherwise a list is tight."1 Before one of its examples the spec adds: "There can be any number of blank lines between items".1
So a blank line is a property of the list — tight or loose — and not a boundary. The list continues until something that is not a list item of the same type interrupts it.
The two-blank-line rule, removed in 2016
It was not always so. CommonMark 0.25, dated 24 March 2016, still said "two blank lines will end a list".11 The changelog for the next version records the removal, in words by the spec's author, John MacFarlane:
"Removed the "two blank lines breaks out of lists" rule. This is incompatible with the principle of uniformity (and indeed with the spec for list items, which requires that the meaning of a chunk of lines not change when it is put into a list item.)"12
The reasoning is worth a second read. A list item can hold anything — paragraphs, code, other lists. If two blank lines ended the list, the same lines would mean one thing at the top level and another inside an item.
The 0.26 text, dated 15 July 2016, still carried the old phrase in its definition of a list. The 0.27 changelog cleaned it up — "The definition of a list still said that "two blank lines end all containing lists." That rule has been removed."12 — and the 0.27 spec, dated 18 November 2016, reads: "The list items may be separated by any number of blank lines."13
Two blank lines have not separated lists in CommonMark for about ten years. In our receipt no engine ended a list there — zero of eight.2 Org mode is the one place in this piece where the old rule survives: its own list syntax, which is not Markdown, "also ends before two blank lines."9
An Obsidian team moderator on the forum made the same reading of the reporter's note: "I don’t consider this a bug because" a two-item group, a blank line and a third item "Or variations or it are the same list (a single loose list)."14 By the spec, that reading is correct. The users are right too — "Move Line" names a line operation. The file and the shortcut's label disagree.
What an item carries: the structure an editor reads
An item-aware editor does not look at spacing. It parses the note into a tree — lists, the items in them, and whatever is indented inside each item — and a move or indent acts on a branch of that tree. Whatever sits inside an item's branch travels with it, and the blank line sits inside the list.
The note from the top parses like this:
list (loose)
├── item: [ ] Read
├── item: [ ] Work
│ ← the blank line is here, inside the list
├── item: [ ] Study 1
└── item: [ ] Study 2
Move Study 1 up under Org-style rules and it swaps with its previous sibling, the item of the same indentation just above it. That item is Work. The swap crosses the blank line because, in the tree, there is no boundary to cross.
Children work the same way. The receipt's sixth case is a parent with one indented child:
- Parent
- Child
- Next
In seven of eight engines the child came out as a second list nested inside the parent's <li>.2 That nested list is the subtree an item move carries. How far a child must be indented to count as a child at all varies by renderer — Python-Markdown 3.8 flattened this two-space case into three sibling items — and how far to indent a nested list so every renderer keeps it covers that in full.15
The tree also explains the folding behaviour some editors offer on lists and headings: folding hides a branch, and moving carries one. Both depend on where the file says a branch ends — a question that folding a section in a note runs into from the other side.16
The receipt: six cases, eight engines
We ran six short notes through eight Markdown engines on 23 November 2026 and counted the lists in each output. One or two blank lines gave one list in all eight. An HTML comment or a line of text between the groups gave two lists in all eight. Switching the bullet character gave two lists in seven.2
The six cases, with ⏎ marking a line break:
A - [ ] Read⏎- [ ] Work⏎⏎- [ ] Study 1⏎- [ ] Study 2
B same as A, with two blank lines between the groups
C same as A, second group bulleted with * instead of -
D same as A, with <!-- --> on its own line between the groups
E same as A, with the line "Afternoon" between the groups
F - Parent⏎ - Child⏎- Next
The engines, at pinned versions: commonmark.js 0.31.2, markdown-it 14.3.3 (default preset), marked 16.4.2, micromark 4.0.3 with its GFM extension, Python-Markdown 3.8, mistune 3.1.3, markdown-it-py 3.0.0 (CommonMark preset) and cmark-gfm.2
| Case | Between the two groups | Engines that made two lists |
|---|---|---|
| A | one blank line | 0 of 8 — one loose list everywhere |
| B | two blank lines | 0 of 8 |
| C | bullet switched from - to * | 7 of 8 — Python-Markdown kept one list |
| D | <!-- --> on its own line | 8 of 8 — markdown-it's default preset printed it as text |
| E | a line of text | 8 of 8 |
| F | a child indented two spaces | 7 of 8 nested it inside the parent; Python-Markdown flattened it |
Two rows need a note. In case D, markdown-it's default preset has raw HTML turned off. The comment still split the list, but it rendered on the page as the literal text <!-- -->. In case C, Python-Markdown's behaviour is deliberate, and its sane_lists extension did not change it in our run.2
The check is small enough to run yourself. This Python script uses markdown-it-py's CommonMark preset and prints the counts for case A:
from markdown_it import MarkdownIt
note = """- [ ] Read
- [ ] Work
- [ ] Study 1
- [ ] Study 2
"""
html = MarkdownIt("commonmark").render(note)
print("lists:", html.count("<ul>"), "paragraphs:", html.count("<p>"))
It prints lists: 1 paragraphs: 4. Put <!-- --> on its own line between the groups, with a blank line on each side, and it prints two lists and no paragraphs.2
The question behind the receipt is not new. On Stack Overflow, "markdown having multiple lists", asked on 23 May 2014, had 5,429 views on 23 November 2026, and "Separate lists in markdown", asked on 18 December 2016, had 4,237.17
Splitting a list for real
To make two lists, put something between them that is not a list item. A line of text — a label such as "Afternoon" — split the list in all eight engines and reads cleanly. An HTML comment also split it in all eight, but shows as text where raw HTML is off. A bullet switch worked in seven.
The label is the plainest fix, and often the most useful one, because the gap usually meant something:
- [ ] Read
- [ ] Work
Afternoon
- [ ] Study 1
- [ ] Study 2
The comment is the spec's own recommendation. CommonMark says: "To separate consecutive lists of the same type, or to separate a list from an indented code block that would otherwise be parsed as a subparagraph of the final list item, you can insert a blank HTML comment".1 Keep a blank line on each side of it:
- [ ] Read
- [ ] Work
<!-- -->
- [ ] Study 1
- [ ] Study 2
The catch is the one the receipt found — an app or site that renders Markdown with raw HTML disabled shows the comment to the reader instead of hiding it.2
The bullet switch is the quietest fix and the least portable. The spec is clear — "Changing the bullet or ordered list delimiter starts a new list"1 — and seven engines obeyed. Python-Markdown declines, on purpose:
"While the syntax rules are not clear on this, many implementations (including the original) do not end one list and start a second list when the list marker (asterisks, pluses, hyphens, and numbers) changes. For consistency, Python-Markdown maintains the same behavior with no plans to change in the foreseeable future."18
Numbered lists have their own version of this rule, with 1. and 1) as the two delimiters, and their own way of restarting — the number you type in a Markdown list is only a suggestion covers it.19
Moving just the line
If your editor moves items and you want to move one line, the options are few and editor-specific. Look for a line-only command or a selection mode. Org gives each unit its own key. In Obsidian 1.15.1, selecting any text on the line makes the commands act on that line alone. Cut and paste needs no list command at all.
An Obsidian team moderator described the 1.15.1 escape this way: "This is somewhat possible already in v1.15.1. If you have at least one character selected on a line, the commands will operate on that single line and not move the children with it."7 The changelog line is the same behaviour from the vendor's side.5
In Org, the choice is made before you press anything: M-RIGHT indents the item and leaves its children where they are, and M-S-RIGHT takes them along.9 An editor that offers only line commands, like VS Code's defaults, never carries children — and never knows it should.
Splitting the list changes what the file says, and so what an item-aware editor sees.
Whether a move then stops at the new boundary or steps across it is each editor's own decision. We read the commands from their documentation and did not test them in the editors.
A quick self-test tells you which kind of note you have. Open it in a reading or preview view: if items in both groups get extra paragraph spacing, it is one loose list. Some apps suppress that spacing, so the HTML, or the receipt script above, is the firmer check.
Trade-offs, and what this receipt does not show
The receipt covers eight parsers, not every Markdown app. We did not run Obsidian's own renderer, pandoc or Gruber's original Markdown.pl. Python-Markdown's documentation says the original also ignores a marker change; we did not confirm that ourselves. The editor commands come from their documentation and changelogs, not from pressing the keys.
Each splitter has a cost:
- A label line adds visible text to the note. That is usually the point, but it is text you now maintain.
- An HTML comment is invisible only where raw HTML is allowed. In markdown-it's default preset it showed on the page.2
- A bullet switch depends on the engine. One of eight kept the list whole, and that engine's documentation says it has no plans to change.18
Item-aware moves are not wrong either — reordering a task with its sub-tasks in one keystroke is what outliners are for.
The trouble starts when a command's name says "line", its behaviour says "item", and the file says the two groups you see are one. The forum figures in this piece are live and were read on 23 November 2026; the thread counts will keep rising.4
Frequently Asked Questions
Why does Move Line Up take the sub-items with it?
Your editor treats the line as a list item and moves the item's whole branch, as Org mode's M-UP does: "Move the item including sub-items up/down". A line command, such as VS Code's default Move Line Up, moves only the line. In Obsidian 1.15.1, select at least one character to move only that line.
Why does moving a list item jump over the blank line between my lists? Because the two groups are one list. In CommonMark a blank line between items makes a list loose; it does not end it. The item swaps with its previous sibling in the same list, and that sibling sits above the blank line. All eight engines we tested parsed the groups as one list.
How do I make two separate lists in Markdown?
Put a line of text, such as a label, between them. That split the list in all eight engines we tested. An HTML comment, <!-- -->, on its own line with a blank line on each side also worked in all eight, but showed as text where raw HTML was off. Switching the bullet character worked in seven of eight.
Do two blank lines end a list in Markdown? Not in CommonMark since 2016. Version 0.25 said "two blank lines will end a list"; version 0.26 removed the rule and 0.27 cleaned the last mention out of the list definition. In a November 2026 receipt, zero of eight engines ended a list at two blank lines.
What is a loose list in Markdown? A list whose items are separated by blank lines, or whose items contain two blocks with a blank line between them. A loose list wraps each item in a paragraph, which adds spacing; a tight list does not. The blank line changes the list's spacing, not its length — it is still one list.
How can I tell whether my two lists are really one list?
Open the note in a reading or preview view. If the items in both groups get paragraph spacing, it is one loose list. Some apps suppress that spacing, so the firmer check is the HTML: one <ul> means one list. A short markdown-it-py script that counts <ul> tags does it in a second.
How do I move a list item without its children?
It depends on the editor. Org mode has separate keys: M-RIGHT indents an item and leaves its children alone, while M-S-RIGHT takes them along. In Obsidian 1.15.1, selecting any text on the line makes move and indent act on that line only. Cutting the line and pasting it needs no list command at all.
A blank line is spacing, not a wall. A list ends where the file says it ends — and a move command carries whatever the file says belongs to the line.
Notes kept as plain Markdown on your own device keep their structure where any parser can check it, which is how mnmnote.com stores them.
Footnotes
-
John MacFarlane, CommonMark Spec, version 0.31.2 (2024-01-28), §5.3 "Lists," including Examples 301 and 308. https://spec.commonmark.org/0.31.2/#lists Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261118013825/https://spec.commonmark.org/0.31.2/ ↩ ↩2 ↩3 ↩4 ↩5
-
MNMNOTE, measured Markdown list-parsing run, 23 November 2026. Six cases through commonmark.js 0.31.2, markdown-it 14.3.3 (default preset), marked 16.4.2 (GFM default), micromark 4.0.3 with micromark-extension-gfm 3.0.0, Python-Markdown 3.8, mistune 3.1.3, markdown-it-py 3.0.0 (CommonMark preset) and cmark-gfm (cmarkgfm 2025.10.22). Counts of
<ul>and<p>per case. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 -
Obsidian, "Obsidian 1.15 Desktop (Public)" changelog (early access 22 October 2026, public 2 November 2026). https://obsidian.md/changelog/2026-11-02-desktop-v1.15.0/ Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261105180751/https://obsidian.md/changelog/2026-11-02-desktop-v1.15.0/ ↩ ↩2
-
Obsidian Forum threads 121647 (549 views, 21 posts, 66 likes), 121579 (404), 121691 (290), 121617 (247) and 121555 (233), opened 3–6 November 2026; 1,723 views combined. https://forum.obsidian.md/t/121647 · https://forum.obsidian.md/t/121579 · https://forum.obsidian.md/t/121691 · https://forum.obsidian.md/t/121617 · https://forum.obsidian.md/t/121555 — counts as of 23 November 2026. ↩ ↩2
-
Obsidian, "Obsidian 1.15.1 Desktop (Public)" changelog (early access 3 November 2026, public 12 November 2026). https://obsidian.md/changelog/2026-11-12-desktop-v1.15.1/ Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261117012729/https://obsidian.md/changelog/2026-11-12-desktop-v1.15.1/ ↩ ↩2 ↩3
-
John Gruber, "Markdown: Syntax," Daring Fireball. https://daringfireball.net/projects/markdown/syntax Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261123012712/https://daringfireball.net/projects/markdown/syntax ↩
-
jjspace and others, "Separate commands for moving/indenting a single list item vs. all of it's children (or add toggle to change the behavior)," Obsidian Forum, thread 121647, opened 5 November 2026 — posts #1 (jjspace), #9 (WhiteNoise, Obsidian team) and #11 (CawlinTeffid, moderator). https://forum.obsidian.md/t/121647 Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261123012332/https://forum.obsidian.md/t/separate-commands-for-moving-indenting-a-single-list-item-vs-all-of-its-children-or-add-toggle-to-change-the-behavior/121647 ↩ ↩2 ↩3
-
Visual Studio Code documentation, "Default keyboard shortcuts reference." https://code.visualstudio.com/docs/reference/default-keybindings Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261123012145/https://code.visualstudio.com/docs/reference/default-keybindings ↩ ↩2 ↩3
-
The Org Manual (Org version 9.8), "Plain Lists." https://orgmode.org/manual/Plain-Lists.html Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261102171031/https://orgmode.org/manual/Plain-Lists.html ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
-
"Move Line Up/Down should respect list structure and empty-line groups," Obsidian Forum, thread 121617 — posts #4 (reaty) and #7 (Cristiano Fraga G. Nunes, cfgnunes). https://forum.obsidian.md/t/121617 Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261123012539/https://forum.obsidian.md/t/move-line-up-down-should-respect-list-structure-and-empty-line-groups/121617 ↩ ↩2
-
John MacFarlane, CommonMark Spec, version 0.25 (2016-03-24), "Lists." https://spec.commonmark.org/0.25/ Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261123012042/https://spec.commonmark.org/0.25/ ↩
-
John MacFarlane, CommonMark spec
changelog.txt, entries [0.26] and [0.27]. https://spec.commonmark.org/changelog.txt Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261123012031/https://spec.commonmark.org/changelog.txt ↩ ↩2 -
John MacFarlane, CommonMark Spec, version 0.27 (2016-11-18), "Lists." https://spec.commonmark.org/0.27/ Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261006030940/https://spec.commonmark.org/0.27/ ↩
-
cfgnunes and others, "Moving items up or down does not work correctly," Obsidian Forum, thread 121579, post #4 (WhiteNoise, Obsidian team), 4 November 2026. https://forum.obsidian.md/t/121579 Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261123012436/https://forum.obsidian.md/t/moving-items-up-or-down-does-not-work-correctly/121579 ↩
-
MNMNOTE, "Indent a Nested List Two Spaces and It Flattens in Some Apps." https://blog.mnmnote.com/posts/indent-a-nested-list-two-spaces-and-it-flattens-in-some-apps ↩
-
MNMNOTE, "Fold a Section in a Note and the Fold May Not Be in the File." https://blog.mnmnote.com/posts/fold-a-section-in-a-note-and-the-fold-may-not-be-in-the-file ↩
-
Stack Overflow, questions 23821014 ("markdown having multiple lists," asked 23 May 2014) and 41210564 ("Separate lists in markdown," asked 18 December 2016). https://stackoverflow.com/q/23821014 · https://stackoverflow.com/q/41210564 — view counts as of 23 November 2026. ↩
-
Python-Markdown documentation, "Differences" → "Consecutive Lists." https://python-markdown.github.io/ Accessed 2026-11-23. · Wayback: https://web.archive.org/web/20261115010609/https://python-markdown.github.io/ ↩ ↩2
-
MNMNOTE, "The Number You Type in a Markdown List Is Only a Suggestion." https://blog.mnmnote.com/posts/the-number-you-type-in-a-markdown-list-is-only-a-suggestion ↩