I spent some time reverse engineering bits of WordML for presentation to LLMs. Not a fun time. Things like ordered list formatting ends up having a lot of unspecified behaviour and precedence, and the same doc in gdocs and word will end up rendering differently because they decided on their own precedences.