summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Added http-client dependencies to stack.yaml files.John MacFarlane2016-07-04
|
* Depend on http-client 0.5, http-client-tls 0.3John MacFarlane2016-07-04
|
* Merge pull request #3012 from tarleb/org-drop-ugly-pragmaJohn MacFarlane2016-07-04
|\ | | | | Org reader: replace ugly code with view pattern
| * Org reader: replace ugly code with view patternAlbert Krewinkel2016-07-04
|/ | | | | | | Some less-than-smart code required a pragma switching of overlapping pattern warnings in order to compile seamlessly. Using view patterns makes the code easier to read and also doesn't require overlapping pattern checks to be disabled.
* Merge pull request #3010 from tarleb/org-header-treeJohn MacFarlane2016-07-03
|\ | | | | Org reader: support archived trees, headline levels export setting
| * Org reader: support headline levels export settingAlbert Krewinkel2016-07-03
| | | | | | | | | | The depths of headlines can be modified using the `H` option. Deeper headlines will be converted to lists.
| * Org reader: put export setting parser into moduleAlbert Krewinkel2016-07-02
| | | | | | | | | | Export option parsing is distinct enough from general block parsing to justify putting it into a separate module.
| * Org reader: support archived trees export optionsAlbert Krewinkel2016-07-01
| | | | | | | | | | | | | | Handling of archived trees can be modified using the `arch` option. Archived trees are either dropped, exported completely, or collapsed to include just the header when the `arch` option is nil, non-nil, or `headline`, respectively.
| * Org reader: refactor comment tree handlingAlbert Krewinkel2016-07-01
| | | | | | | | | | | | Comment trees were handled after parsing, as pattern matching on lists is easier than matching on sequences. The new method of reading documents as trees allows for more elegant subtree removal.
| * Org reader: parse as headlines, convert to blocksAlbert Krewinkel2016-07-01
| | | | | | | | | | | | | | Emacs org-mode is based on outline-mode, which treats documents as trees with headlines are nodes. The reader is refactored to parse into a similar tree structure. This simplifies transformations acting on document (sub-)trees.
| * Org reader: improve tag and properties type safetyAlbert Krewinkel2016-07-01
| | | | | | | | | | Specific newtype definitions are used to replace stringly typing of tags and properties. Type safety is increased while readability is improved.
* | Odt reader: Removed redundant Monoid constraints.John MacFarlane2016-07-03
| |
* | Fix warning for parseURl import.John MacFarlane2016-07-03
| |
* | CPP workaround for deprecation of parseUrl in http-client.John MacFarlane2016-07-03
| |
* | Travis: don't test on lts-5.John MacFarlane2016-07-03
| |
* | Allow 'standout' as a beamer frame option.John MacFarlane2016-07-03
| | | | | | | | | | | | ## Slide title {.standout} Closes #3007.
* | stack.yaml: use 6.5 resolver.John MacFarlane2016-07-03
| |
* | LaTeX reader: strip off double quotes around image source if present.John MacFarlane2016-07-01
| | | | | | | | | | Avoids interpreting these as part of the literal filename. See #2825.
* | LaTeX writer: don't URI-escape image source.John MacFarlane2016-07-01
| | | | | | | | | | Usually this is a local file, and replacing spaces with `%20` ruins things. Closes #2825.
* | beamer, latex templates: pass biblatexoptions directly in package load.John MacFarlane2016-07-01
| | | | | | | | This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
* | ZimWiki writer: removed commented out code that confused Haddock.John MacFarlane2016-07-01
|/ | | | See https://travis-ci.org/jgm/pandoc/jobs/141542247
* Added ZimWiki format to documentation and cabal description.Alex Ivkin2016-07-01
|
* Added Zim Wiki writer, template and tests.Alex Ivkin2016-06-30
|
* Docx writer: set paragraph to FirstPara after display mathJesse Rosenthal2016-07-01
| | | | | | | We treat display math like block quotes, and apply FirstParagraph style to paragraphs that follow them. These can be styled as the user wishes. (But, when the user is using indentation, this allows for paragraphs to continue after display math without indentation.)
* Writers: treat SoftBreak as space for strippingJesse Rosenthal2016-07-01
| | | | | | In Writers.Shared, we strip leading and trailing spaces for display math. Since SoftBreak's are treated as spaces, we should strip those too.
* LaTeX reader: fixed `\cite` so it is a NormalCitation not AuthorInText.John MacFarlane2016-06-29
|
* Merge pull request #3001 from tarleb/org-figure-labelJohn MacFarlane2016-06-26
|\ | | | | Org reader: support figure labels
| * Org reader: support figure labelsAlbert Krewinkel2016-06-26
| | | | | | | | | | | | | | | | Figure labels given as `#+LABEL: thelabel` are used as the ID of the respective image. This allows e.g. the LaTeX to add proper `\label` markup. This fixes half of #2496 and #2999.
* | Include table of contents in README.html in Windows package.John MacFarlane2016-06-26
| |
* | Textile reader: Fix overly aggressive interpretation as images.John MacFarlane2016-06-25
| | | | | | | | | | | | Spaces are not allowed in the image URL in textile. Closes #2998.
* | Added `secnumdepth` variable to LaTeX template.John MacFarlane2016-06-25
| | | | | | | | Closes #2920.
* | Fixed RST links with no explicit link text.John MacFarlane2016-06-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The link `<foo>`_ should have `foo` as both its link text and its URL. See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases> "The reference text may also be omitted, in which case the URI will be duplicated for use as the reference text. This is useful for relative URIs where the address or file name is also the desired reference text: See `<a_named_relative_link>`_ or `<an_anonymous_relative_link>`__ for details." Closes Debian #828167 -- reported by Christian Heller.
* | Make --webtex work with the Markdown writer.John MacFarlane2016-06-24
| | | | | | | | | | Closes #1177. This is a convenient option for people using websites whose Markdown flavors don't provide for math.
* | Added texmath 0.8.6.4 to windows/stack.yaml.John MacFarlane2016-06-24
| |
* | Process markdown extensions on command line in L->R order.John MacFarlane2016-06-23
|/ | | | | | | | Previously they were processed, very unintuitively, in R->L order, so that `markdown-tex_math_dollars+tex_math_dollars` had `tex_math_dollars` disabled. Closes #2995.
* Improved Windows installer - don't ignore properties set on command-line.John MacFarlane2016-06-23
| | | | | | See #2708. Needs testing to see if this resolves the issue. Thanks to @nkalvi.
* Textile reader: fixed attributes.John MacFarlane2016-06-23
| | | | | | | | | | | | | | Attributes can't be followed by a space. So, _(class)emph_ but _(noclass) emph_ Closes #2984.
* Markdown writer: use raw HTML for simple, pipe tables with linebreaks.John MacFarlane2016-06-23
| | | | | | | Markdown line breaks involve a newline, and simple and pipe tables can't contain one. Closes #2993.
* README: update to include track-changes comments.Jesse Rosenthal2016-06-23
|
* Docx reader: add tests for commentsJesse Rosenthal2016-06-23
| | | | | | We test for comments, using all track-changes options. Note that we should only output comments if `--track-changes=all`. We also test for emitting warnings if there is complicated formatting.
* Docx reader tests: Add tests for warnings.Jesse Rosenthal2016-06-23
| | | | We test to see if we emit any warnings.
* Docx reader: Add warning for advanced comment formatting.Jesse Rosenthal2016-06-23
| | | | | | We can't guarantee we'll convert every comment correctly, though we'll do the best we can. This warns if the comment includes something other than Para or Plain.
* docx reader: enable warnings in top-level readerJesse Rosenthal2016-06-23
| | | | | Previously we had only allowed for warnings in the parser. Now we allow for them in the `Docx.hs` as well. The warnings are simply concatenated.
* Docx reader: add simple comment functionality.Jesse Rosenthal2016-06-23
| | | | | | | | | | | | | This adds simple track-changes comment parsing to the docx reader. It is turned on with `--track-changes=all`. All comments are converted to inlines, which can list some information. In the future a warning will be added for comments with formatting that seems like it will be excessively denatured. Note that comments can extend across blocks. For that reason there are two spans: `comment-start` and `comment-end`. `comment-start` will contain the comment. `comment-end` will always be empty. The two will be associated by a numeric id.
* Shared: Add BlockQuote to blocksToInlinesJesse Rosenthal2016-06-23
|
* Shared: introduce blocksToInlines functionJesse Rosenthal2016-06-23
| | | | | | | | | | This is a lossy function for converting `[Block] -> [Inline]`. Its main use, at the moment, is for docx comments, which can contain arbitrary blocks (except for footnotes), but which will be converted to spans. This is, at the moment, pretty useless for everything but the basic `Para` and `Plain` comments. It can be improved, but the docx reader should probably emit a warning if the comment contains more than this.
* Merge pull request #2992 from tarleb/org-partial-functionsJohn MacFarlane2016-06-22
|\ | | | | Org reader: remove partial functions
| * Org reader: remove partial functionsAlbert Krewinkel2016-06-21
| | | | | | | | | | | | | | Partial functions like `head` lead to avoidable errors and should be avoided. They are replaced with total functions. This fixes #2991.
* | HTML writer: Better support for raw LaTeX environments.John MacFarlane2016-06-22
| | | | | | | | | | | | | | | | | | | | | | | | Previously we just passed all raw TeX through when MathJax was used for HTML math. This passed through too much. With this patch, only raw LaTeX environments that MathJax can handle get passed through. This patch also causes raw LaTeX environments to be treated as math, when possible, with MathML and WebTeX output. Closes #2758.
* | Update texmath lower bound.John MacFarlane2016-06-22
|/