git.iko.soy/typeable/pandoc
on master help sign in
Revised changelog to reflect changes since r105.

Included below is a summary of changes committed in the merge of the wrappers branch (r177): Refactored wrappers, with the following aims: + New command line convention, as follows: 1st form: input files specified <wrapper> [wrapper_arg...] input_files... [pandoc_option...] 2nd form: using STDIN, no input file is specified <wrapper> [wrapper_arg...] -- [pandoc_option...] 3rd form: input files specified, optional -- <wrapper> [wrapper_arg...] input_files... -- [pandoc_option...] - All wrappers except 'html2markdown' and 'latex2markdown' should accept multiple filenames. - Use getopts shell builtin for portable option parsing. + Remove code duplication and provide consistency across command line interface. + Allow white space in filenames, especially suitable for Mac OSX users + Improve html2markdown's web grabber code, making it more robust, configurable and verbose. - new function 'grab_url_with' as the wrapper to web grabbers. - 'grab_url_with' can report errors if the grabber fails. - new command line option 'n' to avoid automatic web grabbing. - new command line option 'g' which explicitly selects a grabber and optionally specifies new options for the selected grabber. Possible use cases: # Just use curl. html2markdown -g 'curl' # Use wget by setting timeout to 10 seconds and limit retries to 2. html2markdown -g 'wget --timeout=10 --tries=2' + Add code to html2markdown that tries to determine the character encoding of an HTML file, by parsing the "Content-type" meta tag. - if the encoding can't be determined, then if the content is local, the local encoding is used; if it comes from a URL, UTF-8 is used by default. - if input is from stdin, don't try to determine character encoding. - add a new option '-e' to specify encoding. + Better warning messages: - print warning if iconv not available - in markdown2latex, print only relevant parts of log when pdflatex returns an error condition - in markdown2latex, when 'ucs.sty' is not found, print message telling where to find the 'unicode' package. + Remove PANDOC_OPTS environment variable functionality. It is no longer necessary, now that pandoc options may be specified on the command line. + Add tests for wrappers' processing of command line arguments: - new file 'testwrapper.in' to test the parsing code under 'bash', 'dash', 'ksh' and 'zsh' in POSIX mode. - new makefile target 'test-wrappers' to run 'testwrapper' + Document changes in revisions to wrapper syntax in README and man pages. git-svn-id: https://pandoc.googlecode.com/svn/trunk@178 788f1e2b-df1e-0410-8736-df70ead52e1b

commit36a3bb72743f5ea47051c8d9c1e944a800aea63f authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 12 Dec 2006, 07:31 (20 years ago) parent426cbad
1 file changed+60−4
debian/changelog+60−4
debian/changelog+60−4
@@ -15,10 +15,30 @@ pandoc (0.3) unstable; urgency=low
1515 Cabal versions.
1616
1717 * Refactored template processing (fillTemplates.pl).
18−
19− * Modified wrapper scripts to make them more robust.
2018
21− * Added '--output' option to markdown2pdf.
19+ * Modified wrapper scripts to make them more robust and portable.
20+ To avoid code duplication and ensure consistency, wrappers are
21+ generated via a templating system from templates in src/wrappers.
22+ + New command line convention allows options to be passed to
23+ pandoc, as follows:
24+ 1st form: input files specified
25+ <wrapper> [wrapper_arg...] input_files... [pandoc_option...]
26+ 2nd form: using STDIN, no input file is specified
27+ <wrapper> [wrapper_arg...] -- [pandoc_option...]
28+ 3rd form: input files specified, optional '--'
29+ <wrapper> [wrapper_arg...] input_files... -- [pandoc_option...]
30+ + All wrappers except 'html2markdown' and 'latex2markdown' now
31+ accept multiple filenames.
32+ + getopts shell builtin is used for portable option parsing.
33+ + Spaces and tabs allowed in filenames.
34+ + Improved html2markdown's web grabber code, making it more robust,
35+ configurable and verbose. Added '-e', '-n', '-g' options.
36+ Possible use case:
37+ # Use wget by setting timeout to 10 seconds and limit retries
38+ to 2. html2markdown -g 'wget --timeout=10 --tries=2'
39+ + Added tests for wrappers' processing of command line arguments.
40+
41+ * Added '-o' option to markdown2pdf.
2242
2343 [ John MacFarlane ]
2444
@@ -33,6 +53,30 @@ pandoc (0.3) unstable; urgency=low
3353 + Process quotes before dashes. This way (foo -- 'bar') will turn into
3454 (foo---`bar') instead of (foo---'bar').
3555
56+ * Minor improvements to LaTeX reader:
57+ + Fixed parsing of metadata. Now the title, author, and date
58+ are parsed correctly. Everything else in the preamble is skipped.
59+ + Modified escapedChar to allow a \ at the end of a line to count
60+ as escaped whitespace.
61+ + '\thanks' now treated like a footnote.
62+ + Simplified parsing of LaTeX command arguments and options.
63+ commandArgs now returns a list of arguments OR options (in
64+ whatever order they appear). The brackets are included, and
65+ a new stripFirstAndLast function is provided to strip them off
66+ when needed. This fixes a problem in dealing with \newcommand
67+ and \newenvironment.
68+
69+ * Fixed bug in notFollowedBy' combinator (adding 'try' before 'parser').
70+ Adjusted code that uses this combinator accordingly.
71+
72+ * Made handling of code blocks more consistent. Previously, some
73+ readers allowed trailing newlines, while others stripped them.
74+ Now, all readers strip trailing newlines in code blocks. Writers
75+ insert a newline at the end of code blocks as needed.
76+
77+ * Changed HTML writer to include title block in header even
78+ when title is null.
79+
3680 * Revised pandoc wrapper scripts to pipe output (as well as input)
3781 through iconv.
3882
@@ -42,10 +86,22 @@ pandoc (0.3) unstable; urgency=low
4286 + New osx directory contains files needed for construction
4387 of the package.
4488
89+ * Added code to html2markdown that tries to determine the character
90+ encoding of an HTML file, by parsing the "Content-type" meta tag.
91+ + If the encoding can't be determined, then if the content is local,
92+ the local encoding is used; if it comes from a URL, UTF-8 is used
93+ by default.
94+ + Encoding can be specified explicitly using '-e' option.
95+
96+ * Improved warning messages:
97+ + Print warning if iconv not available
98+ + More user-friendly error messages in markdown2pdf, when
99+ pdflatex fails.
100+
45101 * Rewrote documentation and man pages. Split README into INSTALL
46102 and README.
47103
48− -- Recai Oktaş <roktas@debian.org> Tue, 24 Oct 2006 07:48:30 +0300
104+ -- Recai Oktaş <roktas@debian.org> Tue, 12 Dec 2006 07:48:30 +0300
49105
50106pandoc (0.2) unstable; urgency=low
51107