summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * adding support for breve accents via \u{} while reading LaTeXScott Morrison2013-08-16
| |
* | Shared: Better error message when default data file not found.John MacFarlane2013-08-15
|/ | | | | | Listing the full path can confuse people who are using `--self-contained`: they might have intended the file to be found locally. So now we just list the data file name.
* Updated for removed unMeta, unFormat in pandoc-types.John MacFarlane2013-08-14
|
* Text.Pandoc.Compat.Monoid: Small improvements to the (<>) definition.John MacFarlane2013-08-12
|
* ODT/OpenDocument writer: Minor changes for ODF 1.2 conformance.John MacFarlane2013-08-11
| | | | | See #939. We leave the nonconforming contextual-spacing attribute, which is provided by LibreOffice itself and seems to be supported.
* PDF: Add suggestion to use --latex-engine=xelatex on encoding error.John MacFarlane2013-08-11
|
* Options: Changed `writerSourceDir` to `writerSourceURL` (now a Maybe).John MacFarlane2013-08-11
| | | | | | | | | | | | | | | | | | | | | | | Previously we used to store the directory of the first input file, even if it was local, and used this as a base directory for finding images in ODT, EPUB, Docx, and PDF. This has been confusing to many users. It seems better to look for images relative to the current working directory, even if the first file argument is in another directory. writerSourceURL is set to 'Just url' when the first command-line argument is an absolute URL. (So, relative links will be resolved in relation to the first page.) Otherwise, 'Nothing'. The ODT, EPUB, Docx, and PDF writers have been modified accordingly. Note that this change may break some existing workflows. If you have been assuming that relative links will be interpreted relative to the directory of the first file argument, you'll need to make that the current directory before running pandoc. Closes #942.
* Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane2013-08-10
| | | | They are significantly faster.
* Use query instead of queryWith.John MacFarlane2013-08-10
|
* Adjustments for new Format newtype.John MacFarlane2013-08-10
|
* Preliminary support for new Div and Span elements in writers.John MacFarlane2013-08-08
| | | | | Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.
* Pass writename as argument to filters.John MacFarlane2013-08-08
| | | | | | | | | | | | | | | | | This way filters can figure out what the target format is and react appropriately. Example: #!/usr/bin/env runghc import Text.Pandoc.JSON import Data.Char main = toJSONFilter cap where cap (Just "html") (Str xs) = Str $ map toUpper xs cap _ x = x This capitalizes text only for html output.
* Use pipeProcess in Text.Pandoc.PDF.John MacFarlane2013-08-08
|
* Added Text.Pandoc.Process (pipeProcess).John MacFarlane2013-08-08
| | | | | A souped up version of readProcessWithErrorCode that uses lazy bytestrings and allows setting environment.
* Revert "Textile reader: Removed raw LaTeX parsing."John MacFarlane2013-08-08
| | | | | | This reverts commit bb61624bb2bba416e1992ecdf101f9660a3edcae. Apparently someone put this there for a reason, since it's in the test suite.
* Added Text.Pandoc.Compat.TagSoupEntity.John MacFarlane2013-08-08
| | | | | This allows pandoc to compile with tagsoup 0.13.x. Thanks to Dirk Ullrich for the patch.
* Added Text.Pandoc.Compat.Monoid.John MacFarlane2013-08-08
| | | | | This allows pandoc to compile with base < 4.5, where Data.Monoid doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
* Textile reader: Removed raw LaTeX parsing.John MacFarlane2013-08-07
| | | | This isn't part of Textile.
* Allow YAML title blocks to contain only comments.John MacFarlane2013-08-07
|
* Added support for MetaBool.John MacFarlane2013-08-06
|
* Biblio: Capitalize citation note only if it has a prefix.John MacFarlane2013-08-06
| | | | | So, author names or titles that aren't capitalized will stay uncapitalized.
* Remove CPP from default-extensions; add pragmas to modules as needed.John MacFarlane2013-08-04
|
* Removed comment that chokes recent cpp.John MacFarlane2013-08-03
| | | | Closes #933.
* MediaWiki writer: Use native mediawiki tables instead of HTML.John MacFarlane2013-08-03
| | | | Closes #720.
* Text.Pandoc: Don't reexport ToJSONFilter.John MacFarlane2013-08-03
| | | | | It's better just to import this from Text.Pandoc.JSON. That way, compiled filters will be smaller in size.
* Text.Pandoc.JSON: Use To/FromJSON instances from pandoc-types.John MacFarlane2013-08-03
| | | | | | | * These use GHC generics rather than syb, and are faster. * toJsonFilter is now a deprecated synonym of toJSONFilter from Text.Pandoc.JSON. * The deprecated jsonFilter function has been removed.
* Biblio: Don't interfere with Notes that aren't citation notes.John MacFarlane2013-08-02
| | | | | | Closes #898: notes not generated from citations were being adjusted (first letter capitalized, for example, against author's intentions).
* Biblio: Override citeproc-hs's endWithPunct.John MacFarlane2013-08-02
| | | | | | | The new version correctly sees a sentence ending in '.)' as ending with punctuation. This fixes a bug which led such sentences to receive an extra period at the end: '.).'. Thanks to Steve Petersen for reporting.
* Fixed compilation with http-conduit flag False.John MacFarlane2013-07-30
|
* Markdown atx headers: Allow `.` or `)` after `#` if no `fancy_lists`.John MacFarlane2013-07-29
|
* Beamer: add allowframebreaks to slide if set in header classes.John MacFarlane2013-07-26
| | | | | | | | | | It's recommended that your bibliography slide have this attribute: # References {.allowframebreaks} This causes multiple slides to be created if necessary, depending on the length of the bibliography.
* LaTeX writer: Change `\` to `/` in paths.John MacFarlane2013-07-25
| | | | | `/` works even on Windows in LaTeX. `\` will cause major problems if unescaped.
* LaTeX reader: Support `\v{}` for hacek.John MacFarlane2013-07-25
| | | | Closes #926.
* Textile reader: Improved handling of `<pre>` blocks.John MacFarlane2013-07-25
| | | | | | | | * Closed #927 (a bug in which `<pre>` in certain contexts was not recognized as a code block). * Remove internal HTML tags in code blocks, rather than printing them verbatim. * Parse attributes on `<pre>` tag for code blocks.
* Text.Pandoc: Added readJSON, writeJSON to the API.John MacFarlane2013-07-23
| | | | Closes #817.
* Biblio: Tweaks to improve default behavior.John MacFarlane2013-07-21
| | | | | | | | | | | | | | * A suffix beginning with a digit gets 'p' inserted before it before passing to citeproc-hs, so that bare numbers are treated as page numbers by default. * A suffix not beginning with punctuation has a space added at the beginning (rather than a comma and space, as was done before). * This adding occurs not just in author-in-text citations, but in all citations. The result of these changes (and the last commit) is that `\citep[23]{item1}` in LaTeX will be interpreted properly, with '23' treated as a locator of type 'page'.
* LaTeX reader: Don't add spurious ", " to citation suffixes.John MacFarlane2013-07-21
| | | | This is added when needed in Text.Pandoc.Biblio anyway.
* Markdown reader: Improved strong/emph parsing.John MacFarlane2013-07-20
| | | | | | | | | | Using technique from github.com/jgm/Markdown. The new parsing algorithm requires no backtracking, and no keeping track of nesting levels. It will give different results in some edge cases but should not affect most people.
* PDF generation improvements.John MacFarlane2013-07-20
| | | | | | | | | | | * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`. (API change.) * `makePDF` walks the pandoc AST and checks for the existence of images in the local directory. If they are not found, it attempts to find them, either in the directory containing the first source file, or at an absolute URL, or at a URL relative to the base URL of the first command line argument. * Closes #917.
* Text.Pandoc.PDF: put temporary output directory in TEXINPUTS.John MacFarlane2013-07-18
| | | | | This will help later when we try to download external resources. We can put them in the temp directory. See #917.
* Fixed warning.John MacFarlane2013-07-18
|
* Improved fetching of external resources.John MacFarlane2013-07-18
| | | | | | | | | * In Shared, openURL and fetchItem now return an Either, for better error handling. (API change.) * Better error message when fetching a URL fails with `--self-contained`. * EPUB writer: If resource not found, skip it, as in Docx writer. * Closes #916.
* Added `ignore_line_breaks` markdown extension.John MacFarlane2013-07-17
| | | | | | | | This causes intra-paragraph line breaks to be ignored, rather than being treated as hard line breaks or spaces. This is useful for some East Asian languages, where spaces aren't used between words, but text is separated into lines for readability.
* Text.Pandoc.ImageSize: Handle EPS.John MacFarlane2013-07-16
| | | | | Closes #903. This change will make EPS images properly sized on conversion to Word.
* HTML reader: read widths from col tags if present.John MacFarlane2013-07-16
| | | | Closes #893.
* HTML reader: Handle non-simple tables (#893).John MacFarlane2013-07-16
| | | | | | Column widths are divided equally. TODO: Get column widths from col tags if present.
* HTML reader: Generalized table parser.John MacFarlane2013-07-16
| | | | | This commit doesn't change the present behavior at all, but it will make it easier to support non-simple tables in the future.
* Fixing wrong numbered-list indentation in open document formatAlexander Kondratskiy2013-07-14
|
* Docx writer: Make `--no-highlight` work properly.John MacFarlane2013-07-13
|
* Checking options before applying syntax highlighting for HTML outputAlexander Kondratskiy2013-07-13
|