aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-03-06Some attempts to fix the issue.issue5354John MacFarlane
2019-03-04LaTeX writer: Add classes for frontmatter support (#5353)Andrew Dunning
Remove frontmatter from scrreprt The KOMA-Script `scrreprt` class follows the pattern of `report`, and does not support `\frontmatter`. Use frontmatter for more classes
2019-03-04LaTeX writer/template: better handling of front/main/backmatter.John MacFarlane
In pandoc 2.7 we assumed that every class with chapters would accept `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g. report does not). So pandoc 2.7 breaks on report class by including an unsupported command. So we replace the book-class variable in the template with two variables, has-chapters and has-frontmatter, and set these intelligently in the writer. Closes #5348.
2019-03-02JATS reader: Support fig-group block element (#5317).John MacFarlane
2019-03-02Shared: remove withTempDir.John MacFarlane
2019-03-02Use XDG data directory for user data directory.John MacFarlane
Instead of `$HOME/.pandoc`, the default user data directory is now `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to `$HOME/.local/share` but can be overridden by setting the environment variable. If this directory is missing, then `$HOME/.pandoc` is searched instead, for backwards compatibility. However, we recommend moving local pandoc data files from `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the default user data directory remains the same. Closes #3582.
2019-03-02Add new exported function defaultUserDataDirsJohn MacFarlane
2019-03-01LaTeX(Beamer) writer: include contents under headers < slidelevel.John MacFarlane
Currently we keep the fancy title slide and add a new slide with the same title and whatever content was under the header. This changes behavior of slides, but is consistent with the new behavior of the revealjs and other HTML slide show writers. See #4317.
2019-03-01HTML writer: include content under title slides.John MacFarlane
This facilitates real 2D revealjs slideshows, with content under the top-level slide in each stack. It also enables notes on title slides. Closes #4317 and #5237.
2019-03-01Rearrange --help output in a more rational way.John MacFarlane
Closes #5336.
2019-03-01PDF: change types of subsidiary functions to PandocIO,...John MacFarlane
...to allow warnings to be threaded through. Additional fix for #5343.
2019-03-01Make `--fail-if-warnings` work for PDF output.John MacFarlane
Closes #5343.
2019-03-01Remove license boilerplate.John MacFarlane
The haddock module header contains essentially the same information, so the boilerplate is redundant and just one more thing to get out of sync.
2019-02-28Markdown Reader: yamlToMeta respects extensions (#5276)Mauro Bieg
Add ReaderOptions parameter to yamlToMeta [API change]. fixes #5272
2019-02-28Shared: add filterIpynbOutput. [API change]John MacFarlane
Add command line option `--ipynb-output=all|none|best`. Closes #5339.
2019-02-28ipynb writer: only include metadata under 'jupyter' field.John MacFarlane
2019-02-27Add latexmk as an option for --pdf-engine.John MacFarlane
Closes #3195. Note that you can use --pdf-engine-opt=-outdir=bar to specify a persistent temp dir.
2019-02-27Translations: reorder alphabetically (#5335)Mauro Bieg
remove `Author`, closes #5334
2019-02-27PowerPoint writer: add underlinesJesse Rosenthal
Use span with single class "underline" as in docx writer.
2019-02-25Shared.compactify: Avoid mixed lists.John MacFarlane
This improves on the original fix to #5285 by preventing other mixed lists (lists with a mix of Plain and Para elements) that were allowed given the original fix.
2019-02-23JATS reader: fix parsing of figures.John MacFarlane
This ensures that a figure containing a single image is parsed as a pandoc "implicit figure" (i.e., a Para with a single Image whose title attribute begins with `fig:`). More complex figures will still be parsed as divs. Closes #5321.
2019-02-22Add section identifiers support for FB2 writer (#5315)John
Closes #5229.
2019-02-21Docx reader: Start adding comment to combine moduleJesse Rosenthal
This module is one of the most opaque parts of the docx reader: it deals with the fact that runs have non-nesting formatting, so we have to figure out the nesting on the fly as we combine them. We start adding commenting, so new developers can understand and, if necessary, modify this module. Specific function comments will be added in the future, but this offers a global description of the purpose of the module.
2019-02-20Escape slashes so haddock doesn't think they're italics (#5322)Chris Martin
2019-02-18Docx reader: Trim space inside the last inline.Jesse Rosenthal
We have to add one final mempty when we're combining in order to trim inlines appropriately. (We need to use our own trimming routines here due to the way that formatted inlines are smushed together when converting from docx.) Closes #5273
2019-02-18hlint MuseAlexander Krotov
2019-02-18Muse reader: add secondary note supportAlexander Krotov
2019-02-18Muse writer: escape secondary notesAlexander Krotov
2019-02-18Move a comment in Muse WriterAlexander Krotov
2019-02-16T.P.Lua: split StackInstances into smaller Marshaling modulesAlbert Krewinkel
2019-02-16T.P.Lua: get CommonState from Lua globalAlbert Krewinkel
This allows more control over the common state from within Lua scripts.
2019-02-15ipynb writer: don't create attachments for images with absolute URIs.John MacFarlane
...including data: URIs. Closes #5303.
2019-02-15Markdown reader: fix bug parsing fenced code blocks.John MacFarlane
Previously parsing would break if the code block contained a string of backticks of sufficient length followed by something other than end of line. Closes #5304.
2019-02-15Revert "JATS writer: Support citations."John MacFarlane
This reverts commit 39889c22df578a4310bcf549fcd507c08fbf1416.
2019-02-15JATS writer: Support citations.John MacFarlane
2019-02-15JATS reader: handle citations with multiple references.John MacFarlane
The rid attribute can have a space-separated list of ids. Closes #5310.
2019-02-12Docx reader: unwrap sdt elements in footnotes and comments.Jesse Rosenthal
We had previously walked the document to unwrap sdt/sdtContent and smartTag tags in `word/document.xml`, but not in the `word/{foot/end}note.xml` and `word/comments.xml`. Closes #5302
2019-02-11Remove redundant import.John MacFarlane
2019-02-10ipynb writer: keep plain text fallbacks in output...John MacFarlane
even if a richer format is included. We don't know what output format will be needed. The fallback can always be weeded out using a filter. Closes #5293.
2019-02-10Implement aria roles doc-bibliography, doc-biblioentry, doc-biblioref.John MacFarlane
Note that doc-biblioref is only used when link-citations produces links, since it belongs on links. See #4213.
2019-02-10JATS writer: wrap figure caption in <p> to fix validation (#5292)Mauro Bieg
closes #5290
2019-02-09ipynb writer - ensure final newline.John MacFarlane
2019-02-09Lua filters: load module `pandoc` before calling `init.lua` (#5287)Albert Krewinkel
The file `init.lua` in pandoc's data directory is run as part of pandoc's Lua initialization process. Previously, the `pandoc` module was loaded in `init.lua`, and the structure for marshaling was set-up after. This allowed simple patching of element marshaling, but made using `init.lua` more difficult: - it encouraged mixing essential initialization with user-defined customization; - upstream changes to init.lua had to be merged manually; - accidentally breaking marshaling by removing required modules was possible; Instead, all required modules are now loaded before calling `init.lua`. The file can be used entirely for user customization. Patching marshaling functions, while discouraged, is still possible via the `debug` module.
2019-02-09T.P.Lua: properly indent module-loading errorAlbert Krewinkel
2019-02-09Fixed asciidoc display math in list contexts.John MacFarlane
2019-02-09Asciidoctor writer sets the stem attribute if it contains latexmathTG
2019-02-09Adds Asciidoctor sprcific writer and testsTG
2019-02-09AsciiDoc Writer: DisplayMath as asciidoc latexmath blockTG
2019-02-09AsciiDoc writer: change bulletListLevel and orderedListLevel...John MacFarlane
so that 0 means "not in a list," which is more what one would expect.
2019-02-08Improve tight/loose list handling.John MacFarlane
Closes #5285. Previously the algorithm allowed list items with a mix of Para and Plain, which is never wanted. compactify in T.P.Shared has been modified so that, if a list's items contain (at the top level) Para elements (aside from perhaps at the very end), ALL Plains are converted to Paras.