Use `atx-headers` rather than `setext-headers` in defaults file...
for consistency with CLI options. See #5894.
commit4c4e3066d6ad7b6e70fdb8940ce79d8b3df70669
authorJohn MacFarlane <jgm@berkeley.edu>
dateWed 13 Nov 2019, 16:30 (7 years ago)
parent5c0b374
src/Text/Pandoc/App/Opt.hs+2−2
@@ -299,8 +299,8 @@ doOpt (k',v) = do
299299 return (\o -> o{ optPdfEngineOpts = [unpack x] }))
300300 "slide-level" ->
301301 parseYAML v >>= \x -> return (\o -> o{ optSlideLevel = x })
302− "setext-headers" ->
303− parseYAML v >>= \x -> return (\o -> o{ optSetextHeaders = x })
302+ "atx-headers" ->
303+ parseYAML v >>= \x -> return (\o -> o{ optSetextHeaders = not x })
304304 "ascii" ->
305305 parseYAML v >>= \x -> return (\o -> o{ optAscii = x })
306306 "default-image-extension" ->