summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Docx writer: insert space between footnote ref and footnote.John MacFarlane2015-11-15
| | | | This matches Word's default behavior. Closes #2527.
* Derive Generic instances for types in Text.Pandoc.Options.John MacFarlane2015-11-14
|
* Allow more customization of opendocument styles.John MacFarlane2015-11-14
| | | | | | | | Automatic styles can now be inserted in the template, since the template, not the writer, now provides the enclosing `<office:automatic-styles>` tags. Closes #2520.
* Follow relationships correctly in foot/endnotes.Jesse Rosenthal2015-11-14
| | | | | | There are separate relationship (link) files for foot and endnotes. These had previously been grouped together which led to links not working correctly in notes. This should finally fix that.
* Text.Pandoc.Emoji: use hex escapes instead of Unicode in source.John MacFarlane2015-11-13
| | | | | Some of the unicode characters cause ghc parse errors in older ghc versions.
* Merge pull request #2526 from tarleb/org-definition-lists-fixJohn MacFarlane2015-11-13
|\ | | | | Org reader: Require whitespace around def list markers
| * Org reader: Require whitespace around def list markersAlbert Krewinkel2015-11-13
| | | | | | | | | | | | | | | | | | | | Definition list markers (i.e. double colons `::`) must be surrounded by whitespace to start a definition item. This rule was not checked before, resulting in bugs with footnotes and some link types. Thanks to @conklech for noticing and reporting this issue. This fixes #2518.
* | Merge pull request #2525 from tarleb/org-smart-fixesJohn MacFarlane2015-11-13
|\ \ | | | | | | Org reader: Fix emphasis rules for smart parsing
| * | Org reader: Fix emphasis rules for smart parsingAlbert Krewinkel2015-11-13
| |/ | | | | | | | | | | | | | | | | | | Smart quotes, ellipses, and dashes should behave like normal quotes, single dashes, and dots with respect to text markup parsing. The parser state was not updated properly in all cases, which has been fixed. Thanks to @conklech for reporting this issue. This fixes #2513.
* | Added `emoji` extension to Markdown.John MacFarlane2015-11-13
| | | | | | | | | | | | | | This is enabled by default in `markdown_github`. Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options` (API change). Closes #2523.
* | Allow `://` in citation keys.John MacFarlane2015-11-13
|/ | | | Closes jgm/pandoc-citeproc#166.
* EPUB writer: don't download linked media when `data-external` attribute set.John MacFarlane2015-11-12
| | | | | | | | | | | | | | | By default pandoc downloads all linked media and includes it in the EPUB container. This can be disabled by setting `data-external` on the tags linking to media that should not be downloaded. Example: <audio controls="1"> <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3" type="audio/mpeg"></source> </audio> Closes #2473.
* LaTeX writer: set `colorlinks`...John MacFarlane2015-11-12
| | | | | | if `linkcolor`, `urlcolor`, `citecolor`, or `toccolor` is set. Closes #2508.
* Fixed shadowing error.John MacFarlane2015-11-09
|
* Restored Text.Pandoc.Compat.Monoid.John MacFarlane2015-11-09
| | | | | | | | | | | | | | Don't use custom prelude for latest ghc. This is a better approach to making 'stack ghci' and 'cabal repl' work. Instead of using NoImplicitPrelude, we only use the custom prelude for older ghc versions. The custom prelude presents a uniform API that matches the current base version's prelude. So, when developing (presumably with latest ghc), we don't use a custom prelude at all and hence have no trouble with ghci. The custom prelude no longer exports (<>): we now want to match the base 4.8 prelude behavior.
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Merge pull request #2502 from minoki/latex-comment-environmentJohn MacFarlane2015-11-08
|\ | | | | LaTeX reader: Handle `comment` environment.
| * LaTeX reader: Handle `comment` environment.ARATA Mizuki2015-11-08
| | | | | | | | The `comment` environment is handled in a similar way to the `verbatim` environment, except that its content is discarded.
* | Merge pull request #2505 from tarleb/org-header-markup-fixJohn MacFarlane2015-11-08
|\ \ | | | | | | Org reader: fix markup parsing in headers
| * | Org reader: fix markup parsing in headersAlbert Krewinkel2015-11-08
| |/ | | | | | | | | | | | | | | | | | | Markup as the very first item in a header wasn't recognized. This was caused by an incorrect parser state: positions at which inline markup can start need to be marked explicitly by changing the parser state. This wasn't done for headers. The proper function to update the state is now called at the beginning of the header parser, fixing this issue. This fixes #2504.
* / Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
|/ | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* LaTeX writer: properly handle footnotes in captions.John MacFarlane2015-11-01
| | | | Closes #1506.
* LaTeX writer: avoid footnotes in list of figures.John MacFarlane2015-11-01
| | | | | | | | | | | Footnotes aren't allowed in the list of figures. This patch causes footnotes to be stripped from captions when entered into the list of figures. Footnotes still don't actually WORK in captions in latex/pdf, but at least an error is no longer raised. See #1506.
* Pipe tables with long lines now get relative cell widths.John MacFarlane2015-10-30
| | | | | | | | | | | | | | | | | If a pipe table contains a line longer than the column width (as set by `--columns` or 80 by default), relative widths are computed based on the widths of the separator lines relative to the column width. This should solve persistent problems with long pipe tables in LaTeX/PDF output, and give more flexibility for determining relative column widths in other formats, too. For narrower pipe tables, column widths of 0 are used, telling pandoc not to specify widths explicitly in output formats that permit this. Closes #2471.
* HTML writer: use width on whole table if col widths sum to < 100%.John MacFarlane2015-10-30
| | | | | Otherwise some browsers display the table with the columns separated far apart.
* Textile reader: don't do smart punctuation unless explicitly asked.John MacFarlane2015-10-30
| | | | | | | | Closes #2480. Note that although smart punctuation is part of the textile spec, it's not always wanted when converting from textile to, say, Markdown. So it seems better to make this an option.
* Fixed omitted `url(...)` in CSS data-uri with `--self-contained`.John MacFarlane2015-10-28
| | | | Fixes #2489.
* LaTeX writer: add `\protect` to `\hyperlink`.John MacFarlane2015-10-28
| | | | | | Thanks to Hadrien Mary for the problem and solution. Closes #2490.
* LaTeX writer: Use `\hypertarget` and `\hyperlink` for links.John MacFarlane2015-10-27
| | | | | | | | This works correctly to link to Div or Span elements. We now don't bother defining `\label` for Div or Span elements. Closes jgm/pandoc-citeproc#174.
* Markdown reader: improved parser for `mmd_title_block`.John MacFarlane2015-10-26
| | | | | | | | | We now allow blank metadata fields. These were explicitly disallowed before. For background see #2026. The issue in #2026 has since been fixed in another way, so there is no need to forbid blank metadata fields.
* Added de-CH-1901, fixed el-polytonnickbart19802015-10-26
| | | el-polyton, not el-poly, see http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
* Merge pull request #2481 from mb21/textarabicJohn MacFarlane2015-10-25
|\ | | | | LaTeX writer: \textarabic fix
| * LaTeX writer: \textarabic fixmb212015-10-25
| |
* | Merge pull request #2477 from tarleb/org-toggling-header-argsJohn MacFarlane2015-10-25
|\ \ | |/ |/| Org reader: allow toggling header args
| * Org reader: allow toggling header argsAlbert Krewinkel2015-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Org-mode allows to skip the argument of a code block header argument if it's toggling a value. Argument-less headers are now recognized, avoiding weird parsing errors. The fixes are not exactly pretty, but neither is the code that was fixed. So I guess it's about par for the course. However, a rewrite of the header parsing code wouldn't hurt in the long run. Thanks to @jo-tham for filing the bug report. This fixes #2269.
* | Org reader: fix paragraph/list interactionAlbert Krewinkel2015-10-24
|/ | | | | | | | | | | Paragraphs can be followed by lists, even if there is no blank line between the two blocks. However, this should only be true if the paragraph is not within a list, were the preceding block should be parsed as a plain instead of paragraph (to allow for compact lists). Thanks to @rgaiacs for bringing this up. This fixes #2464.
* Fixed over-eager raw HTML inline parsing.John MacFarlane2015-10-22
| | | | | | | | | | Tightened up the inline HTML parser so it disallows TagWarnings. This only affects the markdown reader when the `markdown_in_html_blocks` option is disabled. Closes #2469.
* Avoid compiler warning for unused identifier.John MacFarlane2015-10-22
|
* Changed § to % in operators from Odt.Arrows.Utils.John MacFarlane2015-10-22
| | | | | | This prevents problems building haddocks with "C" locale. Closes #2457.
* Textile writer: support start number in ordered lists.John MacFarlane2015-10-22
| | | | | | | e.g. `#3`. Partially addresses #2465. TBD: reader support.
* Allow use of ConTeXt to generate PDFs.John MacFarlane2015-10-20
| | | | | | | | pandoc my.md -t context -o my.pdf will now create a PDF using ConTeXt rather than LaTeX. Closes #2463.
* LaTeX and ConTeXt writers: support lang attribute on divs and spansmb212015-10-18
| | | | | For LaTeX, also collect lang and dir attributes on spans and divs to set the lang, otherlangs and dir variables if they aren’t set already. See #895.
* Text.Pandoc.Data: store paths in dataFiles using posix separators.John MacFarlane2015-10-17
| | | | | | | | | This way we have uniform separators, whether on Windows or Linux. This should solve a problem where on some Windows versions the data files weren't being found. Closes #2459.
* Remove compiler warning with embed_data_files.John MacFarlane2015-10-17
|
* LaTeX reader: fixed longtable support.John MacFarlane2015-10-15
|
* Support all frame attributes in Beamer.John MacFarlane2015-10-15
|
* Use unicode super/subscripts for digits in plain output.John MacFarlane2015-10-15
|
* More changes to avoid compiler warnings on ghc 7.10.John MacFarlane2015-10-14
| | | | | | * CPP around deprecated `parseTime`. * Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time, now exports Data.Time.
* Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* LaTeX writer: add `\protect` to `\hyperdef` in inline context.John MacFarlane2015-10-13
| | | | | | | This way we don't get an error when this is used as a moveable argument. Closes #2136.