allow to_md to accept options