aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2017-09-30Removed writerSourceURL, add source URL to common state.John MacFarlane3-8/+5
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`.
2017-09-30Text.Pandoc.Lua: add mediabag submoduleAlbert Krewinkel1-3/+7
2017-09-28Muse reader: parse anchorsAlexander Krotov1-0/+20
2017-09-27RST writer: add header anchors when header has non-standard id.John MacFarlane1-0/+13
Closes #3937.
2017-09-26Muse reader: test metadata parsingAlexander Krotov1-0/+7
2017-09-25Org reader: update emphasis border charsAlbert Krewinkel1-9/+9
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
2017-09-24Allow lua filters to return lists of elementsAlbert Krewinkel1-0/+3
Closes: #3918
2017-09-17Added `--strip-comments` option, `readerStripComments` in `ReaderOptions`.John MacFarlane1-0/+14
* 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.
2017-09-12Textile reader: allow 'pre' code in list item.John MacFarlane1-0/+11
Closes #3916.
2017-09-11Merge pull request #3911 from labdsf/muse-reader-bracesJohn MacFarlane1-0/+33
Muse reader: parse {{{ }}} example syntax
2017-09-11Muse reader: allow inline markup to be followed by punctuationAlexander Krotov1-2/+18
Previously code was not allowed to be followed by comma, and emphasis was allowed to be followed by letter.
2017-09-11Muse reader: parse {{{ }}} example syntaxAlexander Krotov1-0/+33
2017-09-11Muse reader: parse verbatim tagAlexander Krotov1-0/+2
2017-09-10Muse reader: trim newlines from <example>sAlexander Krotov1-0/+25
2017-09-09Updated lhs-test for new skylighting.John MacFarlane2-74/+108
2017-09-09Muse reader: debug inline code markupAlexander Krotov1-2/+32
2017-09-08Adjusted some tests for last commit.John MacFarlane2-0/+2
2017-09-08Write euro symbol directly in LaTeXAndrew Dunning2-0/+2
The textcomp package allows pdfLaTeX to parse `€` directly, making the \euro command unneeded. Closes #3801.
2017-09-07LaTeX template: load polyglossia after header-includes.John MacFarlane1-6/+6
It needs to be loaded as late as possible. Closes #3898.
2017-09-07Markdown writer: Escape pipe characters when `pipe_tables` enabled.John MacFarlane1-1/+1
Closes #3887.
2017-09-06Muse reader: Allow finishing header with EOF (#3897)Alexander1-6/+6
2017-09-05Muse reader: require at least one space char after * in header (#3895)Alexander1-0/+1
2017-09-04Muse reader: parse <div> tag (#3888)Alexander1-0/+8
2017-09-01Org writer: stop using raw HTML to wrap divsAlbert Krewinkel1-0/+14
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
2017-08-29Muse reader: parse verse markup (#3882)Alexander1-0/+24
2017-08-28RST reader: handle blank lines correctly in line blocks (#3881)Alexander1-0/+13
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/
2017-08-27RST reader: Fixed `..include::` directive.John MacFarlane2-0/+7
Closes #3880.
2017-08-25LaTeX reader: improved support for \hyperlink, \hypertarget.John MacFarlane1-0/+38
Closes #2549.
2017-08-25Muse reader: parse <verse> tag (#3872)Alexander1-0/+21
2017-08-24LaTeX reader: RN and Rn, from biblatex (#3854)bucklereed1-0/+23
2017-08-22Muse reader: avoid crashes on multiparagraph inline tags (#3866)Alexander1-0/+10
Test checks that behavior is consistent with Amusewiki
2017-08-22Muse reader: do not allow closing tags with EOF (#3863)Alexander1-0/+6
This behavior is compatible to Amusewiki
2017-08-22Text.Pandoc.Lua: support Inline and Block catch-allsAlbert Krewinkel2-0/+17
Try function `Inline`/`Block` if no other filter function of the respective type matches an element. Closes: #3859
2017-08-22Text.Pandoc.Lua: respect metatable when getting filtersAlbert Krewinkel2-0/+26
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.
2017-08-21Small improvement to #3855 - move lang attribute up.John MacFarlane1-2/+1
So we don't have a dangling line with the closing `>` when `lang` is not set.
2017-08-21docbook5 template: use lang and subtitle variables (#3855)Jens Getreu1-1/+2
2017-08-21Muse reader: add definition list support (#3860)Alexander1-0/+52
2017-08-20Use pandoc-types 1.17.1. Tests updated for new simpleTable behavior...John MacFarlane5-19/+94
with empty headers.
2017-08-20LaTeX reader: Set identifiers on Spans used for \label.John MacFarlane1-1/+1
2017-08-19Markdown reader: use CommonMark rules for list item nesting.John MacFarlane4-14/+60
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.
2017-08-18Markdown reader: fixed parsing of fenced code after list...John MacFarlane1-0/+13
...when there is no intervening blank line. Closes #3733.
2017-08-18LaTeX reader: implement \newtoggle, \iftoggle, \toggletrue|falseJohn MacFarlane1-0/+26
from etoolbox. Closes #3853.
2017-08-17RST reader/writer: support unknown interpreted text roles...John MacFarlane2-1/+15
...by parsing them as Span with "role" attributes. This way they can be manipulated in the AST. Closes #3407.
2017-08-17HTML reader: support column alignments.John MacFarlane1-0/+52
These can be set either with a `width` attribute or with `text-width` in a `style` attribute. Closes #1881.
2017-08-16LaTeX reader: use Link instead of Span for `\ref`.John MacFarlane1-6/+6
This makes more sense semantically and avoids unnecessary Span [Link] nestings when references are resolved.
2017-08-16LaTeX reader: add Support for `glossaries` and `acronym` package (#3589)schrieveslaach1-0/+45
Acronyms are not resolved by the reader, but acronym and glossary information is put into attributes on Spans so that they can be processed in filters.
2017-08-16Fixed command test #2994 on Windows.John MacFarlane1-1/+1
2017-08-14Implement multicolumn support for slide formats.John MacFarlane8-0/+98
The structure expected is: <div class="columns"> <div class="column" width="40%"> contents... </div> <div class="column" width="60%"> contents... </div> </div> Support has been added for beamer and all HTML slide formats. Closes #1710. Note: later we could add a more elegant way to create this structure in Markdown than to use raw HTML div elements. This would come for free with a "native div syntax" (#168). Or we could devise something specific to slides
2017-08-14Update tests for changes to LaTeX template.John MacFarlane4-8/+16
2017-08-14Test fixes so we can find data files.John MacFarlane3-7/+7
In old tests & command tests, we now set the environment variable pandoc_datadir. In lua tests, we set the datadir explicitly.