Revert "Revert "bemhtml: support leading digit modes""

This reverts commit c2cc92fb25934efc817c8ce34d754509262b6e48.
bemhtml: fix leading digit patch