Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-TOOLBAR-138

The column lists the items of top-level lists when a setting asks

While the preview.listItemsInToc setting is on, when the column is built, the extension SHALL list each item of a top-level list of the content container whose first line holds a letter or a digit, by that first line cut to 80 characters, in document order, one level below the heading that precedes it, without a rail tick.

Part of StRS-MDOKFSTUDIO-TOOLBAR-006, outside the paths drawn on its map.

Scenarios 5

The situations the tests check; open one to read it.

nominalItems under their heading
Giventhe setting on and a content container holding a list with the item `Before any heading`, then `# Braking`, then a list with `[SRS_0001] Brake on demand` (which holds a nested list with `a nested item`), `-` and an item whose first line is 101 characters long, then `## Release` and an ordered list with `Release on demand`
Whenthe column is built
Thenit lists `Before any heading` (level 1), `Braking` (1), `[SRS_0001] Brake on demand` (2), the long line cut to 79 characters and `…` (2), `Release` (2) and `Release on demand` (3); the rail holds the two ticks Braking and Release; a click on `[SRS_0001] Brake on demand` scrolls to its list item
boundaryItems that are not listed
ItemListed
`- a nested item` inside another itemno: not an item of a top-level list
`- -`no: its first line holds no letter or digit
an item whose first line is longer than 80 charactersyes, cut to 79 characters and `…`
an item of the `[TOC]` list, of the footnotes, of a table cell or of a hidden tab panelno
boundaryA heading deeper than the items after them
Giventhe setting on and a content container holding the item `Before any heading`, then `## Overview`, `# Top`, a list with `First` and `Second`, then `### Deep`
Whenthe column is built, then the writer folds Top
Thenno item has a twisty, Top is the only entry with one, and folding Top hides `First`, `Second` and Deep
nominalThe reading line at an item
Giventhe setting on, `# Braking` at 100 px, a list item `Brake on demand` at 300 px and `## Release` at 900 px
Whenthe reading line is at 340 px
Thenthe item `Brake on demand` carries aria-current location and the rail marks the tick of Braking
boundaryThe setting is off, the default
Giventhe chapter of the nominal scenario and the setting off or absent from the boot context
Whenthe column is built
Thenit lists the headings only, Braking and Release, as SwRS-MDOKFSTUDIO-TOOLBAR-040 specifies

Implemented in 2

Tested by 3