Fix missing id attribute for markdown header

Fixes #3813, reference #3810

* Adds missing id attribute for markdown header