@@ -90,7 +90,7 @@ parseOptions options' defaults = do
90 let (actions, args, unrecognizedOpts, errors) =
90 let (actions, args, unrecognizedOpts, errors) =
91 getOpt' Permute options' rawArgs
91 getOpt' Permute options' rawArgs
93− let unknownOptionErrors = foldr handelUnrecognizedOption [] unrecognizedOpts
93+ let unknownOptionErrors = foldr handleUnrecognizedOption [] unrecognizedOpts
95 unless (null errors && null unknownOptionErrors) $
95 unless (null errors && null unknownOptionErrors) $
96 err 2 $ concat errors ++ unlines unknownOptionErrors ++
96 err 2 $ concat errors ++ unlines unknownOptionErrors ++
@@ -273,7 +273,6 @@ convertWithOpts opts = do
273 _ -> Nothing
273 _ -> Nothing
275 let readerOpts = def{ readerStandalone = standalone
275 let readerOpts = def{ readerStandalone = standalone
276− , readerParseRaw = optParseRaw opts
277 , readerColumns = optColumns opts
276 , readerColumns = optColumns opts
278 , readerTabStop = optTabStop opts
277 , readerTabStop = optTabStop opts
279 , readerIndentedCodeClasses = optIndentedCodeClasses opts
278 , readerIndentedCodeClasses = optIndentedCodeClasses opts
@@ -463,7 +462,6 @@ data Opt = Opt
463 , optStandalone :: Bool -- ^ Include header, footer
462 , optStandalone :: Bool -- ^ Include header, footer
464 , optReader :: Maybe String -- ^ Reader format
463 , optReader :: Maybe String -- ^ Reader format
465 , optWriter :: Maybe String -- ^ Writer format
464 , optWriter :: Maybe String -- ^ Writer format
466− , optParseRaw :: Bool -- ^ Parse unconvertable HTML and TeX
467 , optTableOfContents :: Bool -- ^ Include table of contents
465 , optTableOfContents :: Bool -- ^ Include table of contents
468 , optBaseHeaderLevel :: Int -- ^ Base header level
466 , optBaseHeaderLevel :: Int -- ^ Base header level
469 , optTemplate :: Maybe FilePath -- ^ Custom template
467 , optTemplate :: Maybe FilePath -- ^ Custom template
@@ -529,7 +527,6 @@ defaultOpts = Opt
529 , optStandalone = False
527 , optStandalone = False
530 , optReader = Nothing
528 , optReader = Nothing
531 , optWriter = Nothing
529 , optWriter = Nothing
532− , optParseRaw = False
533 , optTableOfContents = False
530 , optTableOfContents = False
534 , optBaseHeaderLevel = 1
531 , optBaseHeaderLevel = 1
535 , optTemplate = Nothing
532 , optTemplate = Nothing
@@ -777,11 +774,6 @@ options =
777 "DIRECTORY") -- "Directory containing pandoc data files."
774 "DIRECTORY") -- "Directory containing pandoc data files."
780− , Option "R" ["parse-raw"]
782− (\opt -> return opt { optParseRaw = True }))
783− "" -- "Parse untranslatable HTML codes and LaTeX environments as raw"
785 , Option "" ["base-header-level"]
777 , Option "" ["base-header-level"]
787 (\arg opt ->
779 (\arg opt ->
@@ -1403,22 +1395,25 @@ compileInfo =
1403 "\nCompiled with pandoc-types " ++ VERSION_pandoc_types ++ ", texmath " ++
1395 "\nCompiled with pandoc-types " ++ VERSION_pandoc_types ++ ", texmath " ++
1404 VERSION_texmath ++ ", skylighting " ++ VERSION_skylighting
1396 VERSION_texmath ++ ", skylighting " ++ VERSION_skylighting
1406−handelUnrecognizedOption :: String -> [String] -> [String]
1398+handleUnrecognizedOption :: String -> [String] -> [String]
1407−handelUnrecognizedOption "--smart" =
1399+handleUnrecognizedOption "--smart" =
1408− (("--smart has been removed. Use +smart or -smart extension instead.\n" ++
1400+ (("--smart/-S has been removed. Use +smart or -smart extension instead.\n" ++
1409 "For example: pandoc -f markdown+smart -t markdown-smart.") :)
1401 "For example: pandoc -f markdown+smart -t markdown-smart.") :)
1410−handelUnrecognizedOption "-S" = handelUnrecognizedOption "--smart"
1402+handleUnrecognizedOption "-S" = handleUnrecognizedOption "--smart"
1411−handelUnrecognizedOption "--old-dashes" =
1403+handleUnrecognizedOption "--old-dashes" =
1412 ("--old-dashes has been removed. Use +old_dashes extension instead." :)
1404 ("--old-dashes has been removed. Use +old_dashes extension instead." :)
1413−handelUnrecognizedOption "--no-wrap" =
1405+handleUnrecognizedOption "--no-wrap" =
1414 ("--no-wrap has been removed. Use --wrap=none instead." :)
1406 ("--no-wrap has been removed. Use --wrap=none instead." :)
1415−handelUnrecognizedOption "--chapters" =
1407+handleUnrecognizedOption "--chapters" =
1416 ("--chapters has been removed. Use --top-level-division=chapter instead." :)
1408 ("--chapters has been removed. Use --top-level-division=chapter instead." :)
1417−handelUnrecognizedOption "--reference-docx" =
1409+handleUnrecognizedOption "--reference-docx" =
1418 ("--reference-docx has been removed. Use --reference-doc instead." :)
1410 ("--reference-docx has been removed. Use --reference-doc instead." :)
1419−handelUnrecognizedOption "--reference-odt" =
1411+handleUnrecognizedOption "--reference-odt" =
1420 ("--reference-odt has been removed. Use --reference-doc instead." :)
1412 ("--reference-odt has been removed. Use --reference-doc instead." :)
1421−handelUnrecognizedOption x =
1413+handleUnrecognizedOption "--parse-raw" =
1414+ (("--parse-raw/-R has been removed. Use +raw_html or +raw_tex extension.\n") :)
1415+handleUnrecognizedOption "-R" = handleUnrecognizedOption "--parse-raw"
1416+handleUnrecognizedOption x =
1422 (("Unknown option " ++ x ++ ".") :)
1417 (("Unknown option " ++ x ++ ".") :)
1424uppercaseFirstLetter :: String -> String
1419uppercaseFirstLetter :: String -> String