Change in markdown parser implementation

Function parse-markdown now internally uses left-fold (reduce) instead
of explicit loop-recur construct, function interface and behavior is
still the same as before change.