A heading whose text ends in a number could get the same slug as a numbered duplicate. Heading slugs now come from one HeadingSlugger that skips taken IDs, and the server section lookup counts nested headings like the editor does.
User