Cleanup code; render html and md formats