@@ -90,7 +90,7 @@ parseOptions options' defaults = do
9090 let (actions, args, unrecognizedOpts, errors) =
9191 getOpt' Permute options' rawArgs
9292
93− let unknownOptionErrors = foldr handelUnrecognizedOption [] unrecognizedOpts
93+ let unknownOptionErrors = foldr handleUnrecognizedOption [] unrecognizedOpts
9494
9595 unless (null errors && null unknownOptionErrors) $
9696 err 2 $ concat errors ++ unlines unknownOptionErrors ++
@@ -273,7 +273,6 @@ convertWithOpts opts = do
273273 _ -> Nothing
274274
275275 let readerOpts = def{ readerStandalone = standalone
276− , readerParseRaw = optParseRaw opts
277276 , readerColumns = optColumns opts
278277 , readerTabStop = optTabStop opts
279278 , readerIndentedCodeClasses = optIndentedCodeClasses opts
@@ -463,7 +462,6 @@ data Opt = Opt
463462 , optStandalone :: Bool -- ^ Include header, footer
464463 , optReader :: Maybe String -- ^ Reader format
465464 , optWriter :: Maybe String -- ^ Writer format
466− , optParseRaw :: Bool -- ^ Parse unconvertable HTML and TeX
467465 , optTableOfContents :: Bool -- ^ Include table of contents
468466 , optBaseHeaderLevel :: Int -- ^ Base header level
469467 , optTemplate :: Maybe FilePath -- ^ Custom template
@@ -529,7 +527,6 @@ defaultOpts = Opt
529527 , optStandalone = False
530528 , optReader = Nothing
531529 , optWriter = Nothing
532− , optParseRaw = False
533530 , optTableOfContents = False
534531 , optBaseHeaderLevel = 1
535532 , optTemplate = Nothing
@@ -777,11 +774,6 @@ options =
777774 "DIRECTORY") -- "Directory containing pandoc data files."
778775 ""
779776
780− , Option "R" ["parse-raw"]
781− (NoArg
782− (\opt -> return opt { optParseRaw = True }))
783− "" -- "Parse untranslatable HTML codes and LaTeX environments as raw"
784−
785777 , Option "" ["base-header-level"]
786778 (ReqArg
787779 (\arg opt ->
@@ -1403,22 +1395,25 @@ compileInfo =
14031395 "\nCompiled with pandoc-types " ++ VERSION_pandoc_types ++ ", texmath " ++
14041396 VERSION_texmath ++ ", skylighting " ++ VERSION_skylighting
14051397
1406−handelUnrecognizedOption :: String -> [String] -> [String]
1407−handelUnrecognizedOption "--smart" =
1408− (("--smart has been removed. Use +smart or -smart extension instead.\n" ++
1398+handleUnrecognizedOption :: String -> [String] -> [String]
1399+handleUnrecognizedOption "--smart" =
1400+ (("--smart/-S has been removed. Use +smart or -smart extension instead.\n" ++
14091401 "For example: pandoc -f markdown+smart -t markdown-smart.") :)
1410−handelUnrecognizedOption "-S" = handelUnrecognizedOption "--smart"
1411−handelUnrecognizedOption "--old-dashes" =
1402+handleUnrecognizedOption "-S" = handleUnrecognizedOption "--smart"
1403+handleUnrecognizedOption "--old-dashes" =
14121404 ("--old-dashes has been removed. Use +old_dashes extension instead." :)
1413−handelUnrecognizedOption "--no-wrap" =
1405+handleUnrecognizedOption "--no-wrap" =
14141406 ("--no-wrap has been removed. Use --wrap=none instead." :)
1415−handelUnrecognizedOption "--chapters" =
1407+handleUnrecognizedOption "--chapters" =
14161408 ("--chapters has been removed. Use --top-level-division=chapter instead." :)
1417−handelUnrecognizedOption "--reference-docx" =
1409+handleUnrecognizedOption "--reference-docx" =
14181410 ("--reference-docx has been removed. Use --reference-doc instead." :)
1419−handelUnrecognizedOption "--reference-odt" =
1411+handleUnrecognizedOption "--reference-odt" =
14201412 ("--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 =
14221417 (("Unknown option " ++ x ++ ".") :)
14231418
14241419uppercaseFirstLetter :: String -> String