Add superscript and subscript formatting.
Merge pull request #4 from alecbrooks/master

Fix handling of subscripts and superscripts (including footnotes).