pre-process Markdown to all TOC, Local Links, and  include functions