use to_markdown in format call