@@ -680,6 +680,8 @@ inlineCommands = M.fromList $
680680 , ("nohyphens", tok)
681681 , ("textnhtt", ttfamily)
682682 , ("nhttfamily", ttfamily)
683+ -- textcolor
684+ , ("textcolor", textcolor)
683685 ] ++ map ignoreInlines
684686 -- these commands will be ignored unless --parse-raw is specified,
685687 -- in which case they will appear as raw latex blocks:
@@ -756,6 +758,12 @@ dosiunitx = do
756758 emptyOr160 unit,
757759 unit]
758760
761+textcolor :: PandocMonad m => LP m Inlines
762+textcolor = do
763+ skipopts
764+ color <- braced
765+ spanWith ("",[],[("style","color: " ++ color)]) <$> tok
766+
759767lit :: String -> LP m Inlines
760768lit = pure . str
761769