summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* ConTeXt writer: Use identifiers for chapters.John MacFarlane2017-10-11
| | | | Closes #3968.
* Add test - closes #3958.John MacFarlane2017-10-08
|
* Org reader: end footnotes after two blank linesAlbert Krewinkel2017-10-08
| | | | | Footnotes can not only be terminated by the start of a new footnote or a header, but also by two consecutive blank lines.
* LaTeX reader: read polyglossia/babel \text($LANG){...}.bucklereed2017-10-06
|
* Removed spuriously added test/pandoc.tix.John MacFarlane2017-10-02
|
* Markdown reader: Fixed bug with indented code following raw LaTeX.John MacFarlane2017-10-02
| | | | Closes #3947.
* Org reader: support `\n` export optionAlbert Krewinkel2017-10-02
| | | | | | | The `\n` export option turns all newlines in the text into hard linebreaks. Closes #3950
* Removed writerSourceURL, add source URL to common state.John MacFarlane2017-09-30
| | | | | | | | | | | | | | | | | | Removed `writerSourceURL` from `WriterOptions` (API change). Added `stSourceURL` to `CommonState`. It is set automatically by `setInputFiles`. Text.Pandoc.Class now exports `setInputFiles`, `setOutputFile`. The type of `getInputFiles` has changed; it now returns `[FilePath]` instead of `Maybe [FilePath]`. Functions in Class that formerly took the source URL as a parameter now have one fewer parameter (`fetchItem`, `downloadOrRead`, `setMediaResource`, `fillMediaBag`). Removed `WriterOptions` parameter from `makeSelfContained` in `SelfContained`.
* Text.Pandoc.Lua: add mediabag submoduleAlbert Krewinkel2017-09-30
|
* Muse reader: parse anchorsAlexander Krotov2017-09-28
|
* RST writer: add header anchors when header has non-standard id.John MacFarlane2017-09-27
| | | | Closes #3937.
* Muse reader: test metadata parsingAlexander Krotov2017-09-26
|
* Org reader: update emphasis border charsAlbert Krewinkel2017-09-25
| | | | | | | | | | The org reader was updated to match current org-mode behavior: the set of characters which are acceptable to occur as the first or last character in an org emphasis have been changed and now allows all non-whitespace chars at the inner border of emphasized text (see `org-emphasis-regexp-components`). Fixes: #3933
* Allow lua filters to return lists of elementsAlbert Krewinkel2017-09-24
| | | | Closes: #3918
* Added `--strip-comments` option, `readerStripComments` in `ReaderOptions`.John MacFarlane2017-09-17
| | | | | | | | | | * Options: Added readerStripComments to ReaderOptions. * Added `--strip-comments` command-line option. * Made `htmlTag` from the HTML reader sensitive to this feature. This affects Markdown and Textile input. Closes #2552.
* Textile reader: allow 'pre' code in list item.John MacFarlane2017-09-12
| | | | Closes #3916.
* 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
|
* Updated lhs-test for new skylighting.John MacFarlane2017-09-09
|
* Muse reader: debug inline code markupAlexander Krotov2017-09-09
|
* Adjusted some tests for last commit.John MacFarlane2017-09-08
|
* Write euro symbol directly in LaTeXAndrew Dunning2017-09-08
| | | | The textcomp package allows pdfLaTeX to parse `€` directly, making the \euro command unneeded. Closes #3801.
* LaTeX template: load polyglossia after header-includes.John MacFarlane2017-09-07
| | | | | | It needs to be loaded as late as possible. Closes #3898.
* Markdown writer: Escape pipe characters when `pipe_tables` enabled.John MacFarlane2017-09-07
| | | | Closes #3887.
* Muse reader: Allow finishing header with EOF (#3897)Alexander2017-09-06
|
* Muse reader: require at least one space char after * in header (#3895)Alexander2017-09-05
|
* Muse reader: parse <div> tag (#3888)Alexander2017-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
* Muse reader: parse verse markup (#3882)Alexander2017-08-29
|
* 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.
* 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
|
* 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.
* Small improvement to #3855 - move lang attribute up.John MacFarlane2017-08-21
| | | | | So we don't have a dangling line with the closing `>` when `lang` is not set.
* docbook5 template: use lang and subtitle variables (#3855)Jens Getreu2017-08-21
|
* Muse reader: add definition list support (#3860)Alexander2017-08-21
|
* Use pandoc-types 1.17.1. Tests updated for new simpleTable behavior...John MacFarlane2017-08-20
| | | | with empty headers.
* LaTeX reader: Set identifiers on Spans used for \label.John MacFarlane2017-08-20
|
* 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.
* Markdown reader: fixed parsing of fenced code after list...John MacFarlane2017-08-18
| | | | | | ...when there is no intervening blank line. Closes #3733.
* LaTeX reader: implement \newtoggle, \iftoggle, \toggletrue|falseJohn MacFarlane2017-08-18
| | | | | | from etoolbox. Closes #3853.
* RST reader/writer: support unknown interpreted text roles...John MacFarlane2017-08-17
| | | | | | | ...by parsing them as Span with "role" attributes. This way they can be manipulated in the AST. Closes #3407.