aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-12-21jats writer: Self closing tags for empty xref (#4187)Hamish Mackenzie1-2/+5
2017-12-21Change notes to a smaller size.Jesse Rosenthal1-5/+22
This will allow more to fit on a single slide, and will probably look better.
2017-12-21PowerPoint writer: Add ability to force size.Jesse Rosenthal1-2/+6
This replaces the more specific blockQuote runProp, which only affected the size of blockquotes. We can use this for notes, etc.
2017-12-21Lua modules: added pandoc.utils moduleAlbert Krewinkel6-22/+79
A new module `pandoc.utils` has been created. It holds utility functions like `sha1`, which was moved from the main `pandoc` module.
2017-12-21Lua modules: make a Haskell module for each Lua moduleAlbert Krewinkel4-74/+113
Definitions for the `pandoc.mediabag` modules are moved to a separate Haskell module. Change: minor
2017-12-21Lua modules: move to dedicated submoduleAlbert Krewinkel5-35/+38
The Haskell module defining the Lua `pandoc` module is moved to Text.Pandoc.Lua.Module.Pandoc. Change: minor
2017-12-21MANUAL.txt use native syntax for custom-style (#4174)Mauro Bieg1-6/+6
2017-12-21LaTeX reader: Fixed subtle bug in tokenizer.John MacFarlane1-2/+3
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
2017-12-21Removed default.theme data file.John MacFarlane2-179/+0
It is no longer needed now that we have `--print-highlight-style`. See #4096.
2017-12-21PowerPoint writer: Implement notesJesse Rosenthal1-2/+30
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.)
2017-12-21PowerPoint writer: Register notes to state.Jesse Rosenthal1-0/+8
When we encounter a note, we write it to the state directory of notes, and input a superscript.
2017-12-21Add Note state to PowerPoint writer.Jesse Rosenthal1-0/+2
First step toward implementing notes in pptx writer.
2017-12-21Implement basic definition list functionality to PowerPoint writer.Jesse Rosenthal1-0/+9
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.
2017-12-21Don't look for default template file for Powerpoint.Jesse Rosenthal1-0/+1
When using readerStandalone, this keeps us from looking for a non-existent template pptx file. Closes #4181
2017-12-21Add pptx to isTextFormat listJesse Rosenthal1-1/+1
This is used to check standalone and not writing to the terminal.
2017-12-21Org writer: do not wrap "-" to avoid accidental bullet listsAlexander Krotov2-7/+21
Also add TODO for ordered lists.
2017-12-21Muse reader: parse anchors immediately after headings as IDsAlexander Krotov4-6/+27
2017-12-20Lua modules: turn pipe, read into full Haskell functionsAlbert Krewinkel3-78/+77
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.
2017-12-20Test more pandoc Lua module functionsAlbert Krewinkel2-0/+80
The functions `sha1`, `read`, and `pipe` are now tested. Change: minor
2017-12-20Travis: use --jobs=2 for installing dependencies.John MacFarlane1-1/+1
In hopes this will help with the OOM problems.
2017-12-20makefile: use lts-10 resolver.John MacFarlane1-1/+1
2017-12-20Org reader: fix asterisks-related parsing errorAlbert Krewinkel1-1/+1
A parsing error was fixed which caused the org reader to fail when parsing a paragraph starting with two or more asterisks. Fixes: #4180
2017-12-20Muse reader: require that note references does not start with 0Alexander Krotov2-1/+17
2017-12-19Stack builds with lts-10.0.John MacFarlane3-32/+8
2017-12-19Muse writer: don't wrap note references to the next lineAlexander Krotov2-1/+36
Closes #4172.
2017-12-19Fix for #4171 fix: don't wrap note references after SoftBreakAlexander Krotov2-0/+16
2017-12-19pandoc.lua: re-add missing MetaMap functionAlbert Krewinkel1-1/+4
This was a bug introduced in version 2.0.4 (commit 3f1f9536d4817bbdd797c01050a887fe4cdf347c).
2017-12-19Muse reader: parse empty comments correctlyAlexander Krotov2-2/+3
2017-12-18Org writer: don't allow fn refs to wrap to beginning of line.John MacFarlane2-1/+16
Otherwise they can be interpreted as footnote definitions. Closes #4171.
2017-12-18Lua filters: perform minor code clean-upAlbert Krewinkel2-11/+8
Change: minor
2017-12-17OPML reader: enable raw HTML and other extensions by default for notes.John MacFarlane3-9/+50
This fixes a regression in 2.0. Note that extensions can now be individually disabled, e.g. `-f opml-smart-raw_html`. Closes #4164.
2017-12-15Use latest pandoc-citeproc in binary pkg.John MacFarlane1-1/+1
2017-12-15LaTeX writer: use \renewcommand for \textlatin with babel.John MacFarlane1-4/+7
This avoids a clash with a deprecated \textlatin command defined in Babel. Closes #4161.
2017-12-15Added tests of latex tokenizer.John MacFarlane1-1/+18
This should help prevent regressions like #4159.
2017-12-15LaTeX reader: export tokenize, untokenize.John MacFarlane1-1/+3
Mainly so they can be tested.
2017-12-15Fixed regression in LateX tokenization.John MacFarlane2-2/+10
This mainly affects the Markdown reader when parsing raw LaTeX with escaped spaces. Closes #4159.
2017-12-14Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane1-3/+3
2017-12-14filters.md: say that Text.Pandoc.JSON comes form pandoc-types.John MacFarlane1-3/+3
Closes jgm/pandoc-website#16.
2017-12-14MANUAL: add note on what formats have +smart by default.John MacFarlane1-0/+2
2017-12-14RST reader: more accurate parsing of references.John MacFarlane3-36/+52
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*`_
2017-12-14Merge pull request #4148 from stencila/jats-figuresJohn MacFarlane5-15/+160
fig, table-wrap & caption Divs for JATS writer
2017-12-14Markdown reader: be pickier about table captions.John MacFarlane1-1/+1
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.
2017-12-14Deduplicate JATS writer image mime type codeHamish Mackenzie2-16/+15
2017-12-13Update latex template to work with recent versions of beamer.John MacFarlane1-6/+18
The old template produced numbered sections with some recent versions of beamer. Thanks to Thomas Hodgson.
2017-12-13Removed whitespace at ends of line.John MacFarlane4-42/+42
2017-12-13Merge pull request #4153 from tarleb/unify-lua-initJohn MacFarlane6-149/+184
Unify lua initalization
2017-12-13Docx writer: Add tests for list continuation.Jesse Rosenthal5-0/+23
2017-12-13Docx writer: Continue lists after interruption.Jesse Rosenthal1-15/+22
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
2017-12-13Custom writer: use init file to setup Lua interpreterAlbert Krewinkel6-69/+126
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.
2017-12-13Lua filters: drop unused code, language extensionsAlbert Krewinkel1-11/+1