fix bug where markdown files where used for the heading links