summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-09-29 10:29:29 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2022-09-29 10:29:29 -0700
commit6227144216b35349cc5415233baae13f8d1cc886 (patch)
tree3772a9df536d2366b21f3d6c06060c7da734fc10
parent48d0bfc6753361d0210f142578f248bf9a887d3e (diff)
Remove deprecated `--atx-headers` option.
-rw-r--r--MANUAL.txt10
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs8
-rw-r--r--src/Text/Pandoc/App/Opt.hs2
3 files changed, 3 insertions, 17 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index db561cf7d..7581fb3c1 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -1024,10 +1024,6 @@ header when requesting a document from a URL:
ATX-style headings are always used for levels 3+.
This option also affects Markdown cells in `ipynb` output.
-`--atx-headers`
-
-: *Deprecated synonym for `--markdown-headings=atx`.*
-
`--list-tables`
: Render tables as list tables in RST output.
@@ -3192,7 +3188,7 @@ for other formats are covered.
Note that markdown extensions added to the `ipynb` format
affect Markdown cells in Jupyter notebooks (as do command-line
-options like `--atx-headers`).
+options like `--markdown-headings`).
## Typography
@@ -6890,8 +6886,8 @@ translating between Markdown and ipynb notebooks.
Note that options and extensions that affect reading and
writing of Markdown will also affect Markdown cells in ipynb
notebooks. For example, `--wrap=preserve` will preserve
-soft line breaks in Markdown cells; `--atx-headers` will
-cause ATX-style headings to be used; and `--preserve-tabs` will
+soft line breaks in Markdown cells; `--markdown-headings=setext` will
+cause Setext-style headings to be used; and `--preserve-tabs` will
prevent tabs from being turned to spaces.
# Syntax highlighting
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index 882d94cd2..50925c942 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -564,14 +564,6 @@ options =
"block|section|document")
"" -- "Accepting or reject MS Word track-changes.""
- , Option "" ["atx-headers"]
- (NoArg
- (\opt -> do
- deprecatedOption "--atx-headers"
- "Use --markdown-headings=atx instead."
- return opt { optSetextHeaders = False } ))
- "" -- "Use atx-style headers for markdown"
-
, Option "" ["markdown-headings"]
(ReqArg
(\arg opt -> do
diff --git a/src/Text/Pandoc/App/Opt.hs b/src/Text/Pandoc/App/Opt.hs
index 578a507b7..70adde3e3 100644
--- a/src/Text/Pandoc/App/Opt.hs
+++ b/src/Text/Pandoc/App/Opt.hs
@@ -603,8 +603,6 @@ doOpt (k,v) = do
return (\o -> o{ optPdfEngineOpts = [unpack x] }))
"slide-level" ->
parseJSON v >>= \x -> return (\o -> o{ optSlideLevel = x })
- "atx-headers" ->
- parseJSON v >>= \x -> return (\o -> o{ optSetextHeaders = not x })
"markdown-headings" ->
parseJSON v >>= \x -> return (\o ->
case T.toLower x of