adjust the md creation algorithm ... add lf where needed .. [ci skip]