Add better headings in Markdown files.
Make header customization function more flexible.
Refactor lambda into function.