fixed css id's affecting html, complete rewrite of markdown