jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.03k stars 3.35k forks source link

Unknown reader exceptions when passing markdown extensions to pandoc on Ubuntu 12.10 #751

Closed compleatang closed 11 years ago

compleatang commented 11 years ago

My machine keeps throwing Unknown reader exceptions whenever I pass any markdown+ or markdown- switches to pandoc. Here's my current version

Example:

$ cat test.md
asdfkhlgjad;flgkadjs
$ pandoc --from=markdown-hard_line_breaks -o test.html test.md
pandoc: Unknown reader: markdown-hard_line_breaks
$ pandoc -v
pandoc 1.9.4.2
Compiled with citeproc-hs 0.3.4, texmath 0.6.0.6, highlighting-kate 0.5.1.
Syntax highlighting is supported for the following languages:
    Actionscript, Ada, Alert, Alert_indent, Apache, Asn1, Asp, Awk, Bash,
    Bibtex, Boo, C, Changelog, Clojure, Cmake, Coffeescript, Coldfusion,
    Commonlisp, Cpp, Cs, Css, D, Diff, Djangotemplate, Doxygen, Dtd, Eiffel,
    Email, Erlang, Fortran, Fsharp, Gnuassembler, Go, Haskell, Haxe, Html, Ini,
    Java, Javadoc, Javascript, Json, Jsp, Latex, Lex, LiterateHaskell, Lua,
    Makefile, Mandoc, Matlab, Maxima, Metafont, Mips, Modula2, Modula3,
    Monobasic, Nasm, Noweb, Objectivec, Objectivecpp, Ocaml, Octave, Pascal,
    Perl, Php, Pike, Postscript, Prolog, Python, R, Relaxngcompact, Rhtml, Ruby,
    Scala, Scheme, Sci, Sed, Sgml, Sql, SqlMysql, SqlPostgresql, Tcl, Texinfo,
    Verilog, Vhdl, Xml, Xorg, Xslt, Xul, Yacc, Yaml
Copyright (C) 2006-2012 John MacFarlane
Web:  http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions.  There is no
warranty, not even for merchantability or fitness for a particular purpose.

Started getting these exceptions when I did a reinstall of Ubuntu 12.10 recently. On previous 12.10 install had no problems running pandoc. I am running pandoc from the launchpad repositories. I purged the install and reinstalled using the Haskell Platform cabal commands but it was throwing the same exception. Then I switched back to the normal package from launchpad. I've purged the package and installed it a couple of times (twice before switching to the cabal install method and once after).

Not sure how to debug what is happening, suspect due to the lack of bugs reported online that this may have something to do with my machine. Whenever I pass pandoc readers without extension switches all is working fine. Any help or ideas would be greatly appreciated. Thanks so much.

jgm commented 11 years ago

These switches are only enabled in pandoc 1.10+

+++ Casey Kuhlman [Feb 15 13 05:17 ]:

My machine keeps throwing Unknown reader exceptions whenever I pass any markdown+ or markdown- switches to pandoc. Here's my current version

Example: $ cat test.md asdfkhlgjad;flgkadjs $ pandoc --from=markdown-hard_line_breaks -o test.html test.md pandoc: Unknown reader: markdown-hard_line_breaks

$ pandoc -v pandoc 1.9.4.2 Compiled with citeproc-hs 0.3.4, texmath 0.6.0.6, highlighting-kate 0.5.1. Syntax highlighting is supported for the following languages: Actionscript, Ada, Alert, Alert_indent, Apache, Asn1, Asp, Awk, Bash, Bibtex, Boo, C, Changelog, Clojure, Cmake, Coffeescript, Coldfusion, Commonlisp, Cpp, Cs, Css, D, Diff, Djangotemplate, Doxygen, Dtd, Eiffel, Email, Erlang, Fortran, Fsharp, Gnuassembler, Go, Haskell, Haxe, Html, Ini, Java, Javadoc, Javascript, Json, Jsp, Latex, Lex, LiterateHaskell, Lua, Makefile, Mandoc, Matlab, Maxima, Metafont, Mips, Modula2, Modula3, Monobasic, Nasm, Noweb, Objectivec, Objectivecpp, Ocaml, Octave, Pascal, Perl, Php, Pike, Postscript, Prolog, Python, R, Relaxngcompact, Rhtml, Ruby, Scala, Scheme, Sci, Sed, Sgml, Sql, SqlMysql, SqlPostgresql, Tcl, Texinfo, Verilog, Vhdl, Xml, Xorg, Xslt, Xul, Yacc, Yaml Copyright (C) 2006-2012 John MacFarlane Web: http://johnmacfarlane.net/pandoc This is free software; see the source for copying conditions. There is no warranty, not even for merchantability or fitness for a particular purpose.

Started getting these exceptions when I did a reinstall of Ubuntu 12.10 recently. On previous 12.10 install had no problems running pandoc. I am running pandoc from the launchpad repositories. I purged the install and reinstalled using the Haskell Platform cabal commands but it was throwing the same exception. Then I switched back to the normal package from launchpad. I've purged the package and installed it a couple of times (twice before switching to the cabal install method and once after).

Not sure how to debug what is happening, suspect due to the lack of bugs reported online that this may have something to do with my machine. Whenever I pass pandoc readers without extension switches all is working fine. Any help or ideas would be greatly appreciated. Thanks so much.

-- Reply to this email directly or [1]view it on GitHub. [xJAuenYDiIoVt3LF3y6846LlwjUH6i9qSPok1U0RDn5ZKOy--zcmbAVOic23Ddp9.gif]

References

  1. https://github.com/jgm/pandoc/issues/751
compleatang commented 11 years ago

Ah ha! Thanks so much!

thatcher commented 9 years ago

Is there a way to convert the 1.10 --from switchs that support the +/- operators to something supported in 1.9.4? I'm stuck with 1.9.4 in my production environment for the time being.

The gist of my issue is that pypandoc is using the +/- operator and I'm getting the same error as @compleatang above. I'd like to supply a patch to pypandoc to support 1.9.4 (as fully as possible since thats what I've got).

Thanks, Thatcher

thatcher commented 9 years ago

I was able to get past this via precompiled binaries (normally not an option for me since our production environment is highly controlled).