Skip to content
FileMyLove

Nested Markdown lists in Word: check which item owns each substep

Prepare nested Markdown lists for DOCX conversion and verify parent-child relationships instead of judging only bullet appearance.

By FileMyLove Team2 min read

A substep that becomes a top-level item can change the meaning of a procedure. Check which parent owns each item before adjusting the appearance in Word. List hierarchy matters even when all the text survives conversion.

Use indentation to express ownership

Pandoc documents nested lists as indented to align with the first non-space character after the containing item's marker. For a simple * marker, this example uses two spaces before each child marker:

* Parent
  * Child A
  * Child B
* Next

The example describes two children under Parent, followed by another top-level item. Two spaces are not a universal rule for every marker width; numbered markers and additional indentation need their own alignment check.

We tested this example with FileMyLove's bundled Markdown-to-DOCX engine. The two child paragraphs received the next list level, and Next returned to the parent's level. That verifies this sample, not every editor-specific list extension.

Convert a small representative section

  1. Save a copy of the Markdown source.
  2. Choose a section with parents, children and the return to the outer list.
  3. Keep indentation consistent and remove accidental leading spaces.
  4. Use Markdown to Word.
  5. Open the DOCX and compare each child's parent with the source.

The converter uses Pandoc's Markdown reader. It has no separate control that guesses which tasks belong together. Correct the source structure and convert again when an item is on the wrong level.

Inspect boundaries, not only bullets

Boundary Review
First child Nested under the intended parent
Second child Same level as its sibling
Next main item Back at the outer level
Prose between items Attached to the intended item or outside the list

Our recommendation is to test the longest real item too. Wrapped text can look indented without representing a new list level. Do not judge ownership only by the visible distance from the page edge.

Finish the document after structure is correct

Adjust spacing or bullet style in Word after checking the hierarchy. Read the procedure from start to finish to confirm that no subordinate condition has become a separate instruction.

For starting values and fixed identifiers, see Markdown list numbering. For broader preparation, see headings and lists in Word.