git.iko.soy/typeable/pandoc
on master help sign in
Main.hs: If writer is "context", automatically select
da645ebfiddlosopher
src/Main.hs+2−1
@@ -447,7 +447,8 @@ main = do
447 defaultParserState { stateParseRaw = parseRaw,
447 defaultParserState { stateParseRaw = parseRaw,
448 stateTabStop = tabStop,
448 stateTabStop = tabStop,
449 stateStandalone = standalone && (not strict),
449 stateStandalone = standalone && (not strict),
450− stateSmart = smart || writerName' == "latex",
450+ stateSmart = smart || writerName' `elem`
451+ ["latex", "context"],
451 stateColumns = columns,
452 stateColumns = columns,
452 stateStrict = strict }
453 stateStrict = strict }
453 let csslink = if (css == "")
454 let csslink = if (css == "")
web/demos+1−1
@@ -49,7 +49,7 @@ click on the name of the output file:
49
49
5012. ConTeXt:
5012. ConTeXt:
51
51
52−@ pandoc -s -S -w context README -o example12.tex
52+@ pandoc -s -w context README -o example12.tex
53
53
5413. PDF via pandoc and ConTeXt's `texexec`:
5413. PDF via pandoc and ConTeXt's `texexec`:
55
55