In that case you would need to manually update (or use an external tool) to update the numbers since CommonMark doesn’t format the source, just the rendered output.
Some kind of linter to prettify the Markdown source might be what you’re after. Have a look at this post in the Style Guide topic for one example.