@@ -378,7 +378,8 @@ comment = try (do
378378-- inline
379379--
380380
381−inline = choice [ strong, emph, strikeout, ref, lab, code, linebreak, spacer,
381+inline = choice [ strong, emph, strikeout, superscript, subscript,
382+ ref, lab, code, linebreak, spacer,
382383 math, ellipses, emDash, enDash, hyphen, quoted, apostrophe,
383384 accentedChar, specialChar, specialInline, escapedChar,
384385 unescapedChar, str, endline, whitespace ] <?> "inline"
@@ -522,6 +523,18 @@ strikeout = try $ do
522523 result <- manyTill inline (char '}')
523524 return (Strikeout result)
524525
526+superscript = try $ do
527+ string "\\textsuperscript{"
528+ result <- manyTill inline (char '}')
529+ return (Superscript result)
530+
531+-- note: \textsubscript isn't a standard latex command, but we use
532+-- a defined version in pandoc.
533+subscript = try $ do
534+ string "\\textsubscript{"
535+ result <- manyTill inline (char '}')
536+ return (Subscript result)
537+
525538apostrophe = do
526539 char '\''
527540 return Apostrophe