@@ -1190,10 +1190,11 @@ inlineToLaTeX (Code (_,classes,kvs) str) = do
11901190 Right h -> modify (\st -> st{ stHighlighting = True }) >>
11911191 return (text (T.unpack h))
11921192 case () of
1193− _ | writerListings opts && not (inHeading || inItem) -> listingsCode
1193+ _ | inHeading || inItem -> rawCode -- see #5574
1194+ | writerListings opts -> listingsCode
11941195 | isJust (writerHighlightStyle opts) && not (null classes)
1195− -> highlightCode
1196− | otherwise -> rawCode
1196+ -> highlightCode
1197+ | otherwise -> rawCode
11971198inlineToLaTeX (Quoted qt lst) = do
11981199 contents <- inlineListToLaTeX lst
11991200 csquotes <- liftM stCsquotes get