@@ -1,8 +1,19 @@
11# TODO
22
3+* Fix bug in latex reader? "... gets converted the wrong way.
4+
5+* Use XHTML library for HTML writer?
6+
37* Revisions for building with windows under cygwin:
48 Cabal under windows produces 'pandoc.exe', and some of the scripts
5− expect 'pandoc'.
9+ expect 'pandoc'. (See if this has now been fixed by Makefile change.)
10+
11+* Windows binary distribution: pandoc.exe. Work this into the website
12+ target.
13+
14+* Consider allowing 'a.', 'b.', etc. to mark ordered lists. Perhaps
15+ also '(a)', '(1)', 'a)', '1)', etc., as in rst. This does depart from
16+ markdown syntax.
617
718* Consider making section headers block titles rather than blocks.
819 Instead of: [Header 1 "My title", Block1, Block2, Block3],
@@ -10,6 +21,10 @@
1021 This seems cleaner and would facilitate a docbook writer.
1122 It might also simplify the rst reader.
1223
24+* Consider merging changes in pandoc-wrappers (symlinks rather than
25+ wrapper scripts, except web2markdown and markdown2pdf). This also
26+ needs documentation.
27+
1328* pandoc's HTML output fails to validate completely (w3c).
1429 There are a few quirks:
1530 + HTML doesn't like the \> at the end of <meta tags.
@@ -41,47 +56,3 @@
4156 Disadvantage: Perhaps slightly harder to read. (But HTML and LaTeX
4257 output will still be easy to read.)
4358
44−* Consider scrapping most of the wrapper scripts in favor of having
45− symlinks to pandoc. Modify pandoc so that it changes its defaults
46− depending on the name of the calling program (getProgName).
47− This would eliminate a lot of complexity and allow better handling
48− of options (eliminating the need for a separation between wrapper
49− and pandoc options, for example).
50−
51− If we do this, we should change option parsing in pandoc to allow
52− options after arguments. This will preserve backward-compatibility
53− with the present wrapper system. We'd also want to add an -o
54− option to pandoc (output file). When -o foo is specified, pandoc
55− should print "Created foo" to stderr on success (unless --quiet
56− is specified).
57−
58− A disadvantage is that we'd lose iconv conversion. But maybe this
59− isn't needed anymore; UTF-8 seems to be standard on most systems now.
60−
61− The tricky wrappers to replace are markdown2pdf and html2markdown.
62−
63− markdown2pdf:
64−
65− save working_directory
66− create tempdir
67− if markdown2latex "$@" >tempdir/output 2>tempdir/logfile; then
68− extract output-file from logfile (this will be foo.pdf)
69− if output-file found:
70− mv foo.pdf tempdir/foo.tex
71− else:
72− mv tempdir/output tempdir/foo.tex
73− cd tempdir
74− run pdflatex on foo.tex to produce foo.pdf
75− mv foo.pdf working_directory/foo.pdf
76− else:
77− display logfile to inform user
78− on exit:
79− get rid of tempdir
80−
81− html2markdown: needs to run the HTML through tidy (mainly because
82− pandoc's html parser requires closing tags, etc.) So we probably
83− need something like the existing wrapper script here. roktas
84− suggests perhaps keeping html2markdown simple and using a separate
85− script, web2markdown. note: we also need iconv here, since web
86− pages may not be in UTF8.
87−