summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Lua modules: add stringify function to pandoc.utilsAlbert Krewinkel2017-12-22
| | | | | The new function `pandoc.utils.stringify` converts any AST element to a string with formatting removed.
* Lua.Util: avoid altering the stack if peeking failsAlbert Krewinkel2017-12-22
| | | | | | | | The stack now remains unaltered if `getRawInt` or `getTable` fail. This is important when those functions are used in an operation that is part of an Alternative. Change: minor
* RST writer: fix anchors for headers.John MacFarlane2017-12-22
| | | | | We were missing an `_`. See #4188.
* PowerPoint writer: Treat lists inside BlockQuotes as listsJesse Rosenthal2017-12-22
| | | | | | We don't yet produce incremental lists in PowerPoint, but we should at least treat lists inside BlockQuotes as lists, for compatibility with other slide formats.
* Merge pull request #4177 from stencila/jats-xml-readerJohn MacFarlane2017-12-21
|\ | | | | Add Basic JATS reader based on DocBook reader
| * Improve support for code language in JATSHamish Mackenzie2017-12-22
| |
| * Add Basic JATS reader based on DocBook readerHamish Mackenzie2017-12-20
| |
* | Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane2017-12-21
|\ \
| * | JATS writer: Make <p> optional in <td> and <th> (#4178)Hamish Mackenzie2017-12-21
| | | | | | | | | | | | If the contents are single `Plain` block then do not wrap them with a <p> element.
| * | jats writer: Self closing tags for empty xref (#4187)Hamish Mackenzie2017-12-21
| | |
* | | Docx writer: ensure that `distArchive` is the one that comes with pandoc.John MacFarlane2017-12-21
|/ / | | | | | | | | | | | | | | | | Previously a `reference.docx` in `~/.pandoc` (or the user data dir) would be used instead, and this could cause problems because a user-modified docx sometimes lacks vital sections that we count on the `distArchive` to supply. Closes #4182.
* | Change notes to a smaller size.Jesse Rosenthal2017-12-21
| | | | | | | | This will allow more to fit on a single slide, and will probably look better.
* | PowerPoint writer: Add ability to force size.Jesse Rosenthal2017-12-21
| | | | | | | | | | This replaces the more specific blockQuote runProp, which only affected the size of blockquotes. We can use this for notes, etc.
* | Lua modules: added pandoc.utils moduleAlbert Krewinkel2017-12-21
| | | | | | | | | | A new module `pandoc.utils` has been created. It holds utility functions like `sha1`, which was moved from the main `pandoc` module.
* | Lua modules: make a Haskell module for each Lua moduleAlbert Krewinkel2017-12-21
| | | | | | | | | | | | | | Definitions for the `pandoc.mediabag` modules are moved to a separate Haskell module. Change: minor
* | Lua modules: move to dedicated submoduleAlbert Krewinkel2017-12-21
| | | | | | | | | | | | | | The Haskell module defining the Lua `pandoc` module is moved to Text.Pandoc.Lua.Module.Pandoc. Change: minor
* | LaTeX reader: Fixed subtle bug in tokenizer.John MacFarlane2017-12-21
| | | | | | | | | | | | | | Material following `^^` was dropped if it wasn't a character escape. This only affected invalid LaTeX, so we didn't see it in the wild, but it appeared in a QuickCheck test failure https://travis-ci.org/jgm/pandoc/jobs/319812224
* | PowerPoint writer: Implement notesJesse Rosenthal2017-12-21
| | | | | | | | | | | | | | | | | | | | | | This currently prints all notes on a final slide. Note that at the moment, there is a danger of text overflowing the note slide, since there is no logic for adding further slides. A future commit will shrink the font size on these notes, but that won't take care of the problem altogether. (We might have to implement some sort of clumsy page-breaking logic here based on font size and text-box dimensions, though that seems like a can of worms.)
* | PowerPoint writer: Register notes to state.Jesse Rosenthal2017-12-21
| | | | | | | | | | When we encounter a note, we write it to the state directory of notes, and input a superscript.
* | Add Note state to PowerPoint writer.Jesse Rosenthal2017-12-21
| | | | | | | | First step toward implementing notes in pptx writer.
* | Implement basic definition list functionality to PowerPoint writer.Jesse Rosenthal2017-12-21
| | | | | | | | | | | | These are currently implemented in terms of a Bold para for the terms, and then blockquotes for the definitions. THis can be refined a bit in the future.
* | Don't look for default template file for Powerpoint.Jesse Rosenthal2017-12-21
| | | | | | | | | | | | | | When using readerStandalone, this keeps us from looking for a non-existent template pptx file. Closes #4181
* | Add pptx to isTextFormat listJesse Rosenthal2017-12-21
| | | | | | | | This is used to check standalone and not writing to the terminal.
* | Org writer: do not wrap "-" to avoid accidental bullet listsAlexander Krotov2017-12-21
| | | | | | | | Also add TODO for ordered lists.
* | Muse reader: parse anchors immediately after headings as IDsAlexander Krotov2017-12-21
| |
* | Lua modules: turn pipe, read into full Haskell functionsAlbert Krewinkel2017-12-20
| | | | | | | | | | | | The `pipe` and `read` utility functions are converted from hybrid lua/haskell functions into full Haskell functions. This avoids the need for intermediate `_pipe`/`_read` helper functions, which have dropped.
* | Org reader: fix asterisks-related parsing errorAlbert Krewinkel2017-12-20
| | | | | | | | | | | | A parsing error was fixed which caused the org reader to fail when parsing a paragraph starting with two or more asterisks. Fixes: #4180
* | Muse reader: require that note references does not start with 0Alexander Krotov2017-12-20
|/
* Muse writer: don't wrap note references to the next lineAlexander Krotov2017-12-19
| | | | Closes #4172.
* Fix for #4171 fix: don't wrap note references after SoftBreakAlexander Krotov2017-12-19
|
* Muse reader: parse empty comments correctlyAlexander Krotov2017-12-19
|
* Org writer: don't allow fn refs to wrap to beginning of line.John MacFarlane2017-12-18
| | | | | | Otherwise they can be interpreted as footnote definitions. Closes #4171.
* Lua filters: perform minor code clean-upAlbert Krewinkel2017-12-18
| | | | Change: minor
* OPML reader: enable raw HTML and other extensions by default for notes.John MacFarlane2017-12-17
| | | | | | | | | This fixes a regression in 2.0. Note that extensions can now be individually disabled, e.g. `-f opml-smart-raw_html`. Closes #4164.
* LaTeX writer: use \renewcommand for \textlatin with babel.John MacFarlane2017-12-15
| | | | | This avoids a clash with a deprecated \textlatin command defined in Babel. Closes #4161.
* LaTeX reader: export tokenize, untokenize.John MacFarlane2017-12-15
| | | | Mainly so they can be tested.
* Fixed regression in LateX tokenization.John MacFarlane2017-12-15
| | | | | This mainly affects the Markdown reader when parsing raw LaTeX with escaped spaces. Closes #4159.
* RST reader: more accurate parsing of references.John MacFarlane2017-12-14
| | | | | | | | | | | Previously we erroneously included the enclosing backticks in a reference ID (closes #4156). This change also disables interpretation of syntax inside references, as in docutils. So, there is no emphasis in `my *link*`_
* Merge pull request #4148 from stencila/jats-figuresJohn MacFarlane2017-12-14
|\ | | | | fig, table-wrap & caption Divs for JATS writer
| * Deduplicate JATS writer image mime type codeHamish Mackenzie2017-12-14
| |
| * fig, table-wrap & caption Divs for JATS writerHamish Mackenzie2017-12-13
| | | | | | | | | | | | | | | | | | Support writing <fig> and <table-wrap> elements with <title> and <caption> inside them by using Divs with class set to on of fig, table-wrap or cation. The title is included as a Heading so the constraint on where Heading can occur is also relaxed. Also leaves out empty alt attributes on links.
* | Markdown reader: be pickier about table captions.John MacFarlane2017-12-14
| | | | | | | | | | | | | | A caption starts with a `:` which can't be followed by punctuation. Otherwise we can falsely interpret the start of a fenced div, or even a table header line like `:--:|:--:`, as a caption.
* | Removed whitespace at ends of line.John MacFarlane2017-12-13
| |
* | Merge pull request #4153 from tarleb/unify-lua-initJohn MacFarlane2017-12-13
|\ \ | | | | | | Unify lua initalization
| * | Custom writer: use init file to setup Lua interpreterAlbert Krewinkel2017-12-13
| | | | | | | | | | | | | | | | | | The same init file (`data/init`) that is used to setup the Lua interpreter for Lua filters is also used to setup the interpreter of custom writers.lua.
| * | Lua filters: drop unused code, language extensionsAlbert Krewinkel2017-12-13
| | |
| * | Custom writer: define instances for newtype wrapperAlbert Krewinkel2017-12-13
| | | | | | | | | | | | | | | | | | | | | The custom writer used its own `ToLuaStack` instance definitions, which made it difficult to share code with Lua filters, as this could result in conflicting instances. A `Stringify` wrapper is introduced to avoid this problem.
* | | Docx writer: Continue lists after interruption.Jesse Rosenthal2017-12-13
|/ / | | | | | | | | | | | | | | | | Docx expects that lists will continue where they left off after an interruption and introduces a new id if a list is starting again. So we keep track of the state of lists and use them to define a "start" attribute, if necessary. Closes #4025
* | Markdown reader: always use four space rule for example lists.John MacFarlane2017-12-13
| | | | | | | | | | | | | | | | It would be awkward to indent example list contents to the first non-space character after the label, since example list labels are often long. Thanks to Bernhard Fisseni for the suggestion.
* | Markdown: Improved computation of relative cell widths in pipe tables.John MacFarlane2017-12-12
| |