improved markdown renderer