What you get in Word
Title, Heading 1 to Heading 6 and list styles are set up for you. The navigation pane shows the sections, and References → Table of Contents builds itself from the headings.
Tables keep their header row, which repeats if the table runs onto a second page, and code from the answer stays in Consolas.