aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)Author
2018-07-15Make markdown and github writers respect the `emoji` extension.John MacFarlane
2018-07-15Wrap emojis in span nodes (#4759)Anders Waldenborg
Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span inline containing the emoji character and some attributes with metadata (class `emoji`, attribute `data-emoji` with emoji name). Previously, emojis (as supported in Markdown and CommonMark readers, e.g ":smile:") were simply translated into the corresponding unicode code point. By wrapping them in Span nodes, we make it possible to do special handling such as giving them a special font in HTML output. We also open up the possibility of treating them differently when the `--ascii` option is selected (though that is not part of this commit). Closes #4743.
2018-07-15Support abbreviated units for siunitx (#4773).John MacFarlane
2018-07-15LaTeX reader: be more forgiving in key/value option parsing.John MacFarlane
We now allow arbitrary LaTeX values. This helps with #4761. The `\maxwidth` is still not propagated to the latex destination, but at least we don't choke on parsing.
2018-07-12AsciiDoc Writer: escape square brackets at start of line (#4708)Mauro Bieg
closes #4545
2018-07-06PDF: revert fix for #4484 (only compress images on last run).John MacFarlane
Closes #4755. This will mean some increase in the time it takes to produce an image-heavy PDF with xelatex, but it will make tables of contents correct, which is more important. Note that the production time should also be decreased by the previous commit, which fixed a logic error affecting the number of runs. That change might mitigate the effect of this one.
2018-07-06PDF: Fix logic error in runTeXProgram.John MacFarlane
We were running the tex program one more time than requested. This should speed up pdf production.
2018-07-02JATS reader: fix typo ("lable" instead of "label")Alexander Krotov
2018-07-02Spellcheck commentsAlexander Krotov
2018-06-30RST writer: don't treat 'example' as a syntax name.John MacFarlane
This fixes conversions from org with example blocks. Closes #4748.
2018-06-29Fix compiler warnings.John MacFarlane
2018-06-29Use HsYAML instead of yaml for translations, YAML metadata.John MacFarlane
yaml wraps a C library; HsYAML is pure Haskell. Closes #4747. Advances #4535.
2018-06-29Use decodeEither' not decodeEither (deprecated).John MacFarlane
2018-06-29CommonMark reader: Handle ascii_identifiers extension (#4733)Anders Waldenborg
Non-ascii characters were not stripped from identifiers even if the `ascii_identifiers` extension was enabled (which is is by default for gfm). Closes #4742
2018-06-28Avoid using deprecated 'decode' from yaml.John MacFarlane
2018-06-28TikiWiki reader: improve list parsing (#4723)Mauro Bieg
- remove trailing Space from list items - parse lists that have no space after marker (fixes #4722)
2018-06-28Remove network-uri flag and use 'Network.Socket'.John MacFarlane
This removes a compiler warning. There is no need for the old network-uri flag, since network 2.6 was released in 2014.
2018-06-25LaTeX reader: Treat `lilypond` as a verbatim environment.John MacFarlane
Closes #4725.
2018-06-25Fixed typo in LaTeX writer.John MacFarlane
2018-06-25Texinfo writer: use @sup and @sub instead of custom macrosAlexander Krotov
Fixes #4728
2018-06-13Markdown reader: allow empty code spans.John MacFarlane
E.g. `` ` ` ``.
2018-06-13LaTeX Reader: parse figure label into Image id (#4704)Mauro Bieg
closes #4700
2018-06-12Beamer: Allow "noframenumbering" option (#4696)Raymond Ehlers
As noted [here](https://tex.stackexchange.com/a/49805) ([beamer commit here](https://github.com/josephwright/beamer/commit/ff70090f36b631667b472cfe675fc3514fe46f7e)), `noframenumbering` is an undocumented, but long existing option to disable frame numbering for a particular slide. This is useful to avoid numbering backup slides.
2018-06-12Allow --template to take a URL argument.John MacFarlane
2018-06-12reveal.js writer and template: reuse mathjax URL...John MacFarlane
...provided by the argument to `--mathjax` or the normal pandoc default, rather than a hard-coded one in the template. Closes #4701.
2018-06-12LaTeX reader: allow spaces around `\graphicspath` arguments.John MacFarlane
Closes #4698.
2018-06-12FB2 writer: convert Plain to Para in annotationAlexander Krotov
Address #2424
2018-06-12FB2 writer: fix order of items in title-infoAlexander Krotov
Address issue #2424
2018-06-07LaTeX writer: properly handle footnotes in table captions.John MacFarlane
Refactored code from figure captions to use in both places. Closes #4683.
2018-06-07beamer output: fix single digit column percentage (#4691)Mauro Bieg
fixes #4690
2018-06-05Add missing re-export of "breezeDark" style (#4687)Adrian Sieber
2018-06-03Regression: make --pdf-engine work with full paths (#4682)Mauro Bieg
Fixes #4681.
2018-06-02Support --number-sections in RST output...John MacFarlane
via the "section-numbering" directive in standalone output.
2018-06-01LaTeX reader: handle includes without surrounding blanklines.John MacFarlane
In addition, `\input` can now be used in an inline context, e.g. to provide part of a paragraph, as it can in LaTeX. Closes #4553.
2018-06-01Muse reader: get rid of non-exhaustive pattern match warningmb21
2018-05-31Muse reader: add support for floating imagesAlexander Krotov
2018-05-31Muse reader: add support for images with specified widthAlexander Krotov
2018-05-30Clarify how Ext_east_asian_line_breaks extension works (API docs).kaizhang91
Note that it will not take effect when readers/writers are called as libraries (#4674).
2018-05-30Revert "ALlow compilation with haddock-library 1.4 and above."John MacFarlane
This reverts commit 50c71b5bc5db797ac46550ed54e91196269716e3. This was a bad idea, since tests depend on recent haddock-library. We'd be able to build but fail tests.
2018-05-30ALlow compilation with haddock-library 1.4 and above.John MacFarlane
haddock-library-1.6 requires Cabal >= 2.0. This change allows systems with older Cabal versions to build pandoc.
2018-05-30LaTeX reader `rawLaTeXBlock`: handle macros that resolve to a...John MacFarlane
...`\begin` or `\end`. Fixes #4667.
2018-05-30LaTeX reader: tighten up reading of beamer overlay specifications.John MacFarlane
Ideally we'd turn these on only when reading beamer, but currently beamer is not distinguished from latex as an input format. This commit also activates parsing of overlay specifications after commands in general (e.g. `\item`), since they can occur in many contexts in beamer. Closes #4669.
2018-05-30Markdown writer: preserve `implicit_figures` with attributes...John MacFarlane
...even if `implicit_attributes` is not set, by rendering in raw HTML. Fixes #4677.
2018-05-30Muse reader: parse image URLs without "guard" and "takeExtension"Alexander Krotov
2018-05-28Muse reader: split link and image parsing into separate functionsAlexander Krotov
2018-05-27Muse reader: parse links starting with "URL:" explicitlyAlexander Krotov
instead of trying to strip "URL:" prefix after parsing.
2018-05-20Use haddock-library 1.6.0.John MacFarlane
2018-05-16LaTeX reader: parse more siunitx unit commands.John MacFarlane
Improves on earlier fix for #4296.
2018-05-16Custom writer: fix error message on script failureAlbert Krewinkel
Error messages produced by Lua were not displayed by Pandoc. The writer was using the bottom-most stack element, while the error message is the top-most element. This lead to the writer to always show "Lua 5.3" as error message, disregarding the actual message.
2018-05-15rawLaTeXBlock: don't expand macros in macro definitions!John MacFarlane
Closes #4653. Note that this only affected LaTeX in markdown. Added regression test.