Closed MasWag closed 5 years ago
As an initial step toward supporting Pandoc 2, I've pushed a commit that adds the new options. That should at least take care of the immediate incompatibilities.
Do let me know if you run into any further problems.
Looks like also --reference-docx
and --reference-odt
are affected by this. Both were replaced by --reference-doc
, which makes using a reference file impossible. The output is:
--reference-odt has been removed. Use --reference-doc instead. Try pandoc --help for more information.
(or -docx accordingly)
The relevant option is called "Style Reference Document"
in the pandoc-mode
menu. Perhaps I should simply call it "Reference Doc"
...
Done: 883e131c53a6351a239c422f05027aa526181ddb.
--parse-raw
is no longer valid (need to use +raw_html
or +raw_tex
instead).
Not sure when it was removed (as it's not in the changelog), but --smart
has also been removed (and should be replaced with +smart
).
+raw_html
and raw_tex
are already among the extensions, so they shouldn't pose a problem. +smart
isn't, but I just pushed a fix: ba5908ed13a480d12b1a7b258332813fe3e3f94f.
I'm not removing the old options, because people may still depend on older versions of Pandoc.
There's more that needs to be done to make pandoc-mode
fully compatible with Pandoc 2, but hopefully that will do for the moment. Do let me know if there are other issues.
The 'smart' option does no longer work either. I get this message:
--smart/-S has been removed. Use +smart or -smart extension instead. For example: pandoc -f markdown+smart -t markdown-smart. Try pandoc --help for more information.
Uncheck the smart
option in the menu and check the smart
extension. pandoc-mode
offers both, because some users may still be using older versions of Pandoc. You should choose the one that works on your Pandoc.
I see, thanks and apologies for not sorting this out for myself.
Op di 19 mrt. 2019 12:32 schreef Joost Kremers notifications@github.com:
Uncheck the smart option in the menu and check the smart extension. pandoc-mode offers both, because some users may still be using older versions of Pandoc. You should choose the one that works on your Pandoc.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/joostkremers/pandoc-mode/issues/72#issuecomment-474322737, or mute the thread https://github.com/notifications/unsubscribe-auth/AudfqJSD-vWGm3iTp_nSnrgY7EQiVZG6ks5vYMragaJpZM4Qzr6R .
In pandoc 2.0,
--latex-engine
and--latex-engine-opt
changed to--pdf-engine
and--pdf-engine-opt
. So we cannot specify these options. If we specify these options, pandoc returns error. The same problem is also reported in https://github.com/shd101wyy/markdown-preview-enhanced/issues/665.