bemhtml: support leading digit modes

fix #351