summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
Commit message (Collapse)AuthorAge
* Remove To/FromJSON instance for WriterOptions.John MacFarlane2017-09-15
| | | | | This required the (now removed) instances for Syntax. It was too long, anyway, to be of use.
* FromJSON/ToJSON instances for Reader, WriterOptions.John MacFarlane2017-09-14
| | | | Depends on skylighting 0.3.5.
* Textile reader: allow 'pre' code in list item.John MacFarlane2017-09-12
| | | | Closes #3916.
* Add default pdf engine for beamer.John MacFarlane2017-09-12
|
* Use defaultLatexEngine instead of `head latexEngines`.John MacFarlane2017-09-12
| | | | Partial functions make me nervous.
* Support for PDF generation via `weasyprint` and `prince` (#3909)Mauro Bieg2017-09-11
| | | | | | | * Rename --latex-engine to --pdf-engine * In `Text.Pandoc.Options.WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine` and `writerLaTeXArgs` to `writerPdfArgs`. * Add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`, for PDF generation via HTML (closes #3906). * `Text.Pandoc.PDF.html2pdf`: use stdin instead of intermediate HTML file
* Merge pull request #3911 from labdsf/muse-reader-bracesJohn MacFarlane2017-09-11
|\ | | | | Muse reader: parse {{{ }}} example syntax
| * Muse reader: parse {{{ }}} example syntaxAlexander Krotov2017-09-11
| |
* | Muse reader: allow inline markup to be followed by punctuationAlexander Krotov2017-09-11
|/ | | | | Previously code was not allowed to be followed by comma, and emphasis was allowed to be followed by letter.
* Muse reader: parse verbatim tagAlexander Krotov2017-09-11
|
* Muse reader: trim newlines from <example>sAlexander Krotov2017-09-10
|
* Muse reader: debug inline code markupAlexander Krotov2017-09-09
|
* Write euro symbol directly in LaTeXAndrew Dunning2017-09-08
| | | | The textcomp package allows pdfLaTeX to parse `€` directly, making the \euro command unneeded. Closes #3801.
* Removed old beamer template.John MacFarlane2017-09-08
| | | | | | | We now use the default.latex template for both latex and beamer. It contains conditionals for the beamer-specific things. `pandoc -D beamer` will return this template.
* Markdown writer: Escape pipe characters when `pipe_tables` enabled.John MacFarlane2017-09-07
| | | | Closes #3887.
* LaTeX writer: use proper code for list enumerators.John MacFarlane2017-09-07
| | | | | | | This should fix problems with lists that don't use arabic numerals. Closes #3891.
* Muse reader: Allow finishing header with EOF (#3897)Alexander2017-09-06
|
* LaTeX reader: Better support for ogonek accents.John MacFarlane2017-09-05
|
* Markdown writer: make Span with null attribute transparent.John MacFarlane2017-09-05
| | | | | | That is, we don't use brackets or `<span>` tags to mark spans when there are no attributes; we simply output the contents.
* LaTeX reader: Improve handling of accents.John MacFarlane2017-09-05
| | | | Handle ogonek, and fall back correctly with forms like `\"{}`.
* LaTeX reader: support `\k` ogonek accent.John MacFarlane2017-09-05
|
* Muse reader: require at least one space char after * in header (#3895)Alexander2017-09-05
|
* Plain writer: don't use &nbsp; to separate list and indented code.John MacFarlane2017-09-04
| | | | | There's no need for it in this context, since this isn't to be interpreted using Markdown rules.
* Muse reader: parse <div> tag (#3888)Alexander2017-09-04
|
* HTML reader: Fix pattern match.John MacFarlane2017-09-04
|
* Org writer: stop using raw HTML to wrap divsAlbert Krewinkel2017-09-01
| | | | | | | | | | | | Div's are difficult to translate into org syntax, as there are multiple div-like structures (drawers, special blocks, greater blocks) which all have their advantages and disadvantages. Previously pandoc would use raw HTML to preserve the full div information; this was rarely useful and resulted in visual clutter. Div-rendering was changed to discard the div's classes and key-value pairs if there is no natural way to translate the div into an org structure. Closes: #3771
* HTML reader: improved handling of figure.John MacFarlane2017-08-30
| | | | | Previously we had a parse failure if the figure contained anything besides an image and caption.
* Muse reader: parse verse markup (#3882)Alexander2017-08-29
|
* hlint Muse reader (#3884)Alexander2017-08-29
|
* Add a type sig to satisfy ghc 7.10.3.John MacFarlane2017-08-29
|
* HTML writer: ensure we don't get two style attributes for width & height.John MacFarlane2017-08-28
|
* RST reader: handle blank lines correctly in line blocks (#3881)Alexander2017-08-28
| | | | | | Previously pandoc would sometimes combine two line blocks separated by blanks, and ignore trailing blank lines within the line block. Test is checked to be consisted with http://rst.ninjs.org/
* RST reader: Fixed `..include::` directive.John MacFarlane2017-08-27
| | | | Closes #3880.
* Markdown writer: don't crash on Str "".John MacFarlane2017-08-26
|
* LaTeX reader: improved support for \hyperlink, \hypertarget.John MacFarlane2017-08-25
| | | | Closes #2549.
* Muse reader: parse <verse> tag (#3872)Alexander2017-08-25
|
* LaTeX reader: RN and Rn, from biblatex (#3854)bucklereed2017-08-24
|
* Text.Pandoc.Lua: fix fallback functions with GHC 7.8Albert Krewinkel2017-08-23
|
* Muse reader: avoid crashes on multiparagraph inline tags (#3866)Alexander2017-08-22
| | | Test checks that behavior is consistent with Amusewiki
* Muse reader: do not allow closing tags with EOF (#3863)Alexander2017-08-22
| | | This behavior is compatible to Amusewiki
* Text.Pandoc.Lua: support Inline and Block catch-allsAlbert Krewinkel2017-08-22
| | | | | | | Try function `Inline`/`Block` if no other filter function of the respective type matches an element. Closes: #3859
* Text.Pandoc.Lua: respect metatable when getting filtersAlbert Krewinkel2017-08-22
| | | | | | | | | | | | | | | | This change makes it possible to define a catch-all function using lua's metatable lookup functionality. function catch_all(el) … end return { setmetatable({}, {__index = function(_) return catch_all end}) } A further effect of this change is that the map with filter functions now only contains functions corresponding to AST element constructors.
* Muse reader: add definition list support (#3860)Alexander2017-08-21
|
* LaTeX reader: Set identifiers on Spans used for \label.John MacFarlane2017-08-20
|
* LaTeX reader: allow `]` inside group in option brackets.John MacFarlane2017-08-20
| | | | Closes #3857.
* Protect OVERLAPS pragma with CPP.John MacFarlane2017-08-20
|
* Use OverlappingInstances instead of OVERLAPS for ghc 7.8.4.John MacFarlane2017-08-20
|
* Removed redundant import.John MacFarlane2017-08-20
|
* Simplify instances in Class by parameterizing on MonadTrans.John MacFarlane2017-08-19
|
* Markdown reader: use CommonMark rules for list item nesting.John MacFarlane2017-08-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #3511. Previously pandoc used the four-space rule: continuation paragraphs, sublists, and other block level content had to be indented 4 spaces. Now the indentation required is determined by the first line of the list item: to be included in the list item, blocks must be indented to the level of the first non-space content after the list marker. Exception: if are 5 or more spaces after the list marker, then the content is interpreted as an indented code block, and continuation paragraphs must be indented two spaces beyond the end of the list marker. See the CommonMark spec for more details and examples. Documents that adhere to the four-space rule should, in most cases, be parsed the same way by the new rules. Here are some examples of texts that will be parsed differently: - a - b will be parsed as a list item with a sublist; under the four-space rule, it would be a list with two items. - a code Here we have an indented code block under the list item, even though it is only indented six spaces from the margin, because it is four spaces past the point where a continuation paragraph could begin. With the four-space rule, this would be a regular paragraph rather than a code block. - a code Here the code block will start with two spaces, whereas under the four-space rule, it would start with `code`. With the four-space rule, indented code under a list item always must be indented eight spaces from the margin, while the new rules require only that it be indented four spaces from the beginning of the first non-space text after the list marker (here, `a`). This change was motivated by a slew of bug reports from people who expected lists to work differently (#3125, #2367, #2575, #2210, #1990, #1137, #744, #172, #137, #128) and by the growing prevalance of CommonMark (now used by GitHub, for example). Users who want to use the old rules can select the `four_space_rule` extension. * Added `four_space_rule` extension. * Added `Ext_four_space_rule` to `Extensions`. * `Parsing` now exports `gobbleAtMostSpaces`, and the type of `gobbleSpaces` has been changed so that a `ReaderOptions` parameter is not needed.