CommonMark: fix prefix rule for headers

Implement commonmark example 29.
Fix auto id sequenc numbers