mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-25 17:05:41 +00:00
HTML writer: Include highlighting-css for code spans, too.
Previously it was only included if used in a code block. Closes #653.
This commit is contained in:
@@ -591,7 +591,9 @@ inlineToHtml opts inline =
|
||||
Nothing -> return
|
||||
$ foldl (!) H.code (attrsToHtml opts attr)
|
||||
$ strToHtml str
|
||||
Just h -> return $ foldl (!) h $
|
||||
Just h -> do
|
||||
modify $ \st -> st{ stHighlighting = True }
|
||||
return $ foldl (!) h $
|
||||
attrsToHtml opts (id',[],keyvals)
|
||||
where (id',_,keyvals) = attr
|
||||
(Strikeout lst) -> inlineListToHtml opts lst >>=
|
||||
|
||||
Reference in New Issue
Block a user