initial to_markdown() implementation