Expand description
Splitting a markdown body into sections and joining it back.
A body splits at its ## headings. A ## block larger than the limit
splits further at ### , then at blank lines, then at line ends, and a
single overlong line at a character boundary. Headings inside code fences
are text. The split is lossless: join of split gives the body back
whenever it opens with its # title line.
Functions§
- join
- The body of
titleandsections, sections inorder. - order_
between - An order strictly between
beforeandafter(either end open), orNonewhen no integer fits and the page has to be renumbered. - renumber
- Fresh orders for
nsections:ORDER_GAP,2 * ORDER_GAP, …. - split
split_withatSECTION_MAX_BYTES.- split_
with - Splits
bodyinto its title and sections no larger thanmaxbytes.