@@ -58,6 +58,7 @@ import Network.HTTP (simpleHTTP, mkRequest, getResponseBody, RequestMethod(..))
5858import Network.URI (parseURI, isURI, URI(..))
5959import qualified Data.ByteString.Lazy as B
6060import Data.ByteString.Lazy.UTF8 (toString)
61+import qualified Data.Set as Set
6162import Text.CSL.Reference (Reference(..))
6263#if MIN_VERSION_base(4,4,0)
6364#else
@@ -936,7 +937,10 @@ main = do
936937 then "."
937938 else takeDirectory (head sources)
938939
939− let readerOpts = def{ readerStrict = strict
940+ let readerOpts = def{ readerExtensions =
941+ if strict
942+ then Set.empty
943+ else Set.fromList [minBound..maxBound]
940944 , readerSmart = smart || (texLigatures &&
941945 (laTeXOutput || writerName' == "context"))
942946 , readerStandalone = standalone'