fix to_markdown export