@@ -379,7 +379,7 @@ blockToHtml opts (CodeBlock (id',classes,keyvals) rawCode) = do
379379 in return $ foldl (!) H.pre attrs $ H.code
380380 $ toHtml adjCode
381381 Just h -> modify (\st -> st{ stHighlighting = True }) >>
382− return h
382+ return (foldl (!) h (attrsToHtml opts (id',[],keyvals)))
383383blockToHtml opts (BlockQuote blocks) =
384384 -- in S5, treat list in blockquote specially
385385 -- if default is incremental, make it nonincremental;
@@ -547,7 +547,9 @@ inlineToHtml opts inline =
547547 Nothing -> return
548548 $ foldl (!) H.code (attrsToHtml opts attr)
549549 $ strToHtml str
550− Just h -> return h
550+ Just h -> return $ foldl (!) h $
551+ attrsToHtml opts (id',[],keyvals)
552+ where (id',_,keyvals) = attr
551553 (Strikeout lst) -> inlineListToHtml opts lst >>=
552554 return . H.del
553555 (SmallCaps lst) -> inlineListToHtml opts lst >>=