Fix a bug in write_md with nested lists