@@ -1006,12 +1006,12 @@ renderRole contents fmt role attr = case role of
10061006 "RFC" -> return $ rfcLink contents
10071007 "pep-reference" -> return $ pepLink contents
10081008 "PEP" -> return $ pepLink contents
1009− "literal" -> return $ B.str contents
1009+ "literal" -> return $ B.codeWith attr contents
10101010 "math" -> return $ B.math contents
10111011 "title-reference" -> titleRef contents
10121012 "title" -> titleRef contents
10131013 "t" -> titleRef contents
1014− "code" -> return $ B.codeWith attr contents
1014+ "code" -> return $ B.codeWith (union attr ["code"]) contents
10151015 "raw" -> return $ B.rawInline (fromMaybe "" fmt) contents
10161016 custom -> do
10171017 customRole <- stateRstCustomRoles <$> getState