diff options
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 7441152a6..0b539d553 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -471,7 +471,9 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts) "b", "c", "t", "environment", "label", "plain", "shrink", "standout", "noframenumbering"] - let optionslist = ["fragile" | fragile && isNothing (lookup "fragile" kvs)] ++ + let optionslist = ["fragile" | fragile + , isNothing (lookup "fragile" kvs) + , "fragile" `notElem` classes] ++ [k | k <- classes, k `elem` frameoptions] ++ [k ++ "=" ++ v | (k,v) <- kvs, k `elem` frameoptions] let options = if null optionslist |