Export to markdown and UI cleanup.