docs: fix formatting inconsistencies for better clarity (#23270)