initial parsing and rendering markdown code