git.iko.soy/typeable/pandoc
on 58697eb help sign in
58697ebModified shell scripts to use new Pandoc --dump-args and --ignore-args features. This allows a simpler, cleaner design.fiddlosopher 9eafa97Have pandoc return exit code 2 whenever a usage message is produced, even if it's because a bad option was specified.fiddlosopher 5dda65bChanges to Pandoc's options to facilitate wrapper scripts: + removed -d/--debug option + added --dump-args option, which prints the name of the output file (or '-' for STDOUT) and all the command-line arguments (excluding Pandoc options and their arguments), one per line, then exits. Note that special wrapper options will be treated as arguments if they follow '--' at the end of the command line. Thus, pandoc --dump-args -o foo.html foo.txt -- -e latin1 will print the following to STDOUT: foo.html foo.txt -e latin1 + added --ignore-args option, which causes Pandoc to ignore all (non-option) arguments, including any special options that occur after '--' at the end of the command line. + '-' now means STDIN as the name of an input file, STDOUT as the name of an output file. So, pandoc -o - - will take input from STDIN and print output to STDOUT. Note that if multiple '-o' options are specified on the same line, the last one takes precedence. So, in a script, pandoc "$@" -o - will guarantee output to STDOUT, even if the '-o' option was used. + documented these changes in man pages, README, and changelog.fiddlosopher d47ce5bAdded [breaklinks=true] to latex writer test case.fiddlosopher 856db32Simplify regex.roktas 52666e2+ Revert previous commit which is wrong and insufficient on some parts. + Improve sed filter to extract the following error contexts: 1. From a line starting with ! to the next blank line. 2. From a line beginning "LaTeX Warning:" to the next blank line. 3. From a line beginning "Error:" to the next blank line, or EOF. + Improve the error message headers (perhaps needs a proof reading). Prepend the wrapper name to the error headers for easy spotting.roktas 900e352+ Fix a nasty bug in markdown2pdf. It used to send the log file to /dev/null!roktas 6f76111Added [breaklinks=true] to hyperref package in LaTeX header. This produces nicer-looking output by default.fiddlosopher 15ea29bSmall improvements to indentSpaces. (Allow combinations of spaces and tabs.)fiddlosopher f2c2494Modified HTML output for Image elements, to conform to Markdown.pl: + title attribute comes after alt attribute + title is included even if nullfiddlosopher 1bc5858Fixed performance problems with '--strict' option: + Replaced skipEndline with "option ' ' newline" where possible. + Replaced "notFollowedBy' header" in definition of endline with a faster but equally accurate test for a folliwng header. + Removed check at the beginning of 'reference' for a noteStart: This is not needed, because note comes before referenceKey in the definition of block. + Replaced check for a following anyHtmlBlockTag in autoLink with a check for anyHtmlTag or anyHtmlEndTag. + Other small code cleanups.fiddlosopher 233148fFixed bug in Markdown reader's handling of underscores and other inline formatting markers inside reference labels: for example, in '[A_B]: /url/a_b', the material between underscores was being parsed as emphasized inlines.fiddlosopher 58dcef0Added support for hexadecimal entities: e.g. &#xA0AB;fiddlosopher cbfe29fFixed formatting in pandoc man page.fiddlosopher 7ecac6dAllow '-S' option to be specified together with '--strict', if desired. Thus 'pandoc -S --strict -r markdown -w html' can replace the Markdown.pl/Smartypants combination.fiddlosopher 1645fb6Fixed serious performance problems with new Markdown reader: Instead of using lookahead to determine whether a single quote is an apostrophe, we now use state. Inside single quotes, a ' character won't be recognized as the beginning of a single quote. 'stateQuoteContext' has been added to keep track of this.fiddlosopher bb8478eMerged changes from 'quotes' branch since r431. Smart typography is now handled in the Markdown and LaTeX readers, rather than in the writers. The HTML writer has been rewritten to use the prettyprinting library.fiddlosopher 06e6107Fix the bug in 'install-all' target which does not install the wrappers. (This target is somewhat special as it should handle installing and _registering_ the library in generic installations.) We can't rely on 'install-exec' to fix this bug (but we should depend on 'build-exec' nevertheless), since the 'install-all' target already installs pandoc along with the library files. Therefore we should install wrappers separately by using a helper function which was specifically created to avoid code duplication ('install-exec' target was also updated so as to use this function).roktas 46f0c05Change the author order in debian/changelog to reflect the order of importance. Changes in pandoc itself are more important than those in the build system.roktas 74ef307Update signature in debian/changelog.roktas c9f72f4Setup executable permissions on some files.roktas 35683e4Remove executable permission of hsmarkdown.in.roktas 2040434Fix the wrapper usage instruction in INSTALL.roktas d437015Nicer informational message in test-markdown target.fiddlosopher 39eb8cbChanged Markdown writer so that it does not use the single-bracket style of implicit reference link. It now uses [this style][], not [this style]. Reason: only newer, beta versions of Markdown allow the single-bracket style.fiddlosopher a5e3c09Fixed small bug in consolidateList: added case for (Str a):Space:Space:rest.fiddlosopher 030d94eRefactored SGML escaping functions and "in tag" functions to Text/Shared/Pandoc. (escapeSGML, stringToSGML, inTag, inTagSimple, inTagIndented, selfClosingTag) These can be used by both the HTML and Docbook writers.fiddlosopher 24f3710Fixed bug in encodeEntities (characters less than 128, not 127, should be encoded).fiddlosopher 9e199dcSmall README changes documenting differences from standard markdown.fiddlosopher b6663c7Changed test-markdown target in Makefile: Now it will find any markdown test suites in the 'test' directory (subdirectories beginning with 'MarkdownTest_') and run them all. This allows us to have multiple test suites, e.g. for 1.0 and for a beta version.fiddlosopher b770a9fRemoved unneeded 'options' parameter from 'indentedInTags' function in Docbook writer.fiddlosopher c85980dAdded some instructions to INSTALL about setting the PATH for trying out pandoc and the shell scripts from the build directory.fiddlosopher 99959b6+ Improved text wrapping algorithm in markdown, docbook, and RST writers. LineBreaks no longer cause ugly wrapping in Markdown output. + Replaced splitBySpace with the more general, polymorphic function splitBy (in Text/Pandoc/Shared).fiddlosopher e488031Modified HTML reader to skip a newline following a <br> tag. Otherwise the newline will be treated as a space at the beginning of the next line.fiddlosopher ec1be2bRemoved unneeded WRAPPER_ARGS and WRAPPEE_ARGS variables from src/wrappers/common.sh.fiddlosopher a8a0dd8Cleaned up and improved Makefile target for wrappers.fiddlosopher d262d16Improved Makefile 'wrappers' target. (Previously, it would build all wrappers corresponding to src/wrappers/*.in. Now, it will only build wrappers in WRAPPERS. This might be useful if we decide to have 'hsmarkdown' be a wrapper on Windows and a symlink on unix.)fiddlosopher bd31474Improved test-markdown target in Makefile: + Use 'hsmarkdown' instead of building 'pandoc-strict' (which was a hack, and didn't work on Windows machines, anyway, due to the line ending problem) + Put top-level directory in path before running the test script, so that hsmarkdown can find 'pandoc' even if it hasn't been installed.fiddlosopher b9eeba9Modified main 'pandoc' program so that if it is called with program name = 'hsmarkdown' (e.g. through a symlink, on a system with real symbolic links), it will translate markdown to HTML in strict mode and interpret all command-line options as arguments, like Markdown.pl.fiddlosopher 17be8bcCSS changes for website.fiddlosopher bcc608fFixed a bug in website generation, which only worked if 'pandoc' and the wrappers had been installed.fiddlosopher 339fcbbAdded fuller package descriptions to debian/control.fiddlosopher f4713cfMoved hsmarkdown to src/wrappers/hsmarkdown.in, so it works with our existing build process. There's no harm in having it be a template, even though there's nothing to fill it.fiddlosopher 5387ebdAdded 'hsmarkdown' wrapper, designed to be used as a drop-in replacement for Markdown.pl. It calls pandoc with the options '--from markdown --to html --strict' and disallows other options. (Any command-line options will be interpreted as arguments.)fiddlosopher 89f2468Added package URL to Pandoc.cabal.in.fiddlosopher b416038Documented change of 'HtmlEntities' to 'Entities' in changelog.fiddlosopher d445453Change 'HtmlEntities' module to 'Entities'. Adjusted calling code accordingly.fiddlosopher 4e57451Use entities for all characters above 127 in docbook output. Though XML tools should support unicode, some people will be using SGML tools, and these do not. Using entities makes the docbook files more portable.fiddlosopher 2716943Changed representation of code blocks to use <screen> and escaped characters rather than <programlisting> and CDATA. Reason: XML source more easily editable and readable.fiddlosopher ae869a0Changed description in debian/control to include docbook writer.fiddlosopher