write doc with md