removed not used requires from core
read all markdown posts
post-lead, extract lead text for a post
refactor common functions