type, title, layout to .md