summaryrefslogtreecommitdiff
path: root/src/pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-07-25 10:45:45 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-07-25 10:45:45 -0700
commitda3702357dc9a310b460c82411fe5b8c870416d5 (patch)
tree5281c07c458edf84409e67530b16b20fabe8d778 /src/pandoc.hs
parent0d21b8d6ae2546391085d6977962f7d471d9267f (diff)
Put smart, strict in separate options field in state.
This is the beginning of a larger transition that will make Options, not ParserState, the parameter of the read functions. (Options will also be used in writers, in place of WriterOptions.) Next step is to remove strict, replacing it with granular tests for different extensions.
Diffstat (limited to 'src/pandoc.hs')
-rw-r--r--src/pandoc.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs
index 0fd9f37a4..c879a874c 100644
--- a/src/pandoc.hs
+++ b/src/pandoc.hs
@@ -942,11 +942,12 @@ main = do
lhsExtension sources,
stateStandalone = standalone',
stateCitations = map CSL.refId refs,
- stateSmart = smart || (texLigatures &&
- (laTeXOutput || writerName' == "context")),
stateOldDashes = oldDashes,
stateColumns = columns,
- stateStrict = strict,
+ stateOptions = def{ optionStrict = strict
+ , optionSmart = smart ||
+ (texLigatures &&
+ (laTeXOutput || writerName' == "context")) },
stateIndentedCodeClasses = codeBlockClasses,
stateApplyMacros = not laTeXOutput
}