Editor: a list marker alone on its line is plain text, but Reading view and the metadata cache read an empty list item

Steps to reproduce

  1. Paste this into a note. The middle line is a single - with nothing after it:

    - a
    -
    - b
    
  2. Look at it in Live Preview and Source mode, then in Reading view.

Did you follow the troubleshooting guide?

Yes (reproduced in the sandbox vault, no community plugins).

Expected result

One list of three items, the middle one empty, as Reading view shows and as CommonMark specifies: a list item may be empty, and its marker needs no space after it when nothing follows. This exact note is CommonMark 0.31.2 example 281, and 1. foo, 2., 3. bar is example 283.

Actual result

The editor shows the middle line as a plain-text -, with no bullet and no list styling, so the list looks split in two with a stray dash between the halves.

Reading view shows one list with an empty middle bullet, and the metadata cache agrees with it: listItems has three entries, the middle one on line 1.

Typing - (with the space) already gives a bullet in the editor, so this is only about a saved note whose marker has no space after it.

Environment

SYSTEM INFO:
	Obsidian version: 1.14.5
	Installer version: 1.14.4
	Operating system: Windows 11 Pro 10.0.26300
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Sandbox vault, no community plugins, default theme and settings. Also reproduced on 1.15.0 (Catalyst).

Additional information

The same holds for *, + and an ordered marker such as 2. alone on a line inside a list. With 1. a, 2., 3. b it goes further: once the note is open, Source mode shows the last line as 2. b, so the editor’s list renumbering skipped the empty item and rewrote the next number in the note.

Related but different: Reading view: list item boundaries differ from CommonMark is about Reading view taking an empty item where CommonMark does not, such as a * alone under a paragraph. Here Reading view follows CommonMark and the editor does not.