Fixed by [99c26fccba]

Use 'class=' instead of dir, and change the css to support whatever class you want.