aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2017-10-24Fenced divs: ensure that paragraph at end doesn't become Plain.John MacFarlane1-1/+14
Added test case.
2017-10-23Back to using [WARNING] and [INFO] to mark messages.John MacFarlane3-5/+5
2017-10-23Implemented fenced Divs.John MacFarlane1-0/+30
+ Added Ext_fenced_divs to Extensions (default for pandoc Markdown). + Document fenced_divs extension in manual. + Implemented fenced code divs in Markdown reader. + Added test. Closes #168.
2017-10-23HTML reader: `htmlTag` improvements.John MacFarlane1-0/+9
We previously failed on cases where an attribute contained a `>` character. This patch fixes the bug. Closes #3989.
2017-10-23More pleasing presentation of warnings and info messages.John MacFarlane3-5/+5
!! warning -- info
2017-10-23Fixed test for change in log level.John MacFarlane1-3/+0
2017-10-22LaTeX Reader: support \lettrinemb211-0/+9
2017-10-19LaTeX reader: support `\expandafter`.John MacFarlane1-0/+29
Closes #3983.
2017-10-17Latex reader: Skip spaces in image optionsBen Firshman1-0/+3
2017-10-17Add tests for existing \includegraphics behaviourBen Firshman1-0/+24
2017-10-16Revised command test 3971 to work with Windows.John MacFarlane1-2/+2
2017-10-16Improved handling of include files in LaTeX reader.John MacFarlane2-0/+11
Previously `\include` wouldn't work if the included file contained, e.g., a begin without a matching end. We've changed the Tok type so that it stores a full SourcePos, rather than just a line and column. So tokens keeep track of the file they came from. This allows us to use a simpler method for includes, which doesn't require parsing the included document as a whole. Closes #3971.
2017-10-16RST writer: correctly handle inline code containing backticks.John MacFarlane1-0/+6
(Use a :literal: role.) Closes #3974.
2017-10-16RST writer: don't backslash-escape word-internal punctuation.John MacFarlane2-1/+7
Closes #3978.
2017-10-11ConTeXt writer: Use identifiers for chapters.John MacFarlane1-0/+9
Closes #3968.
2017-10-08Add test - closes #3958.John MacFarlane1-0/+20
2017-10-08Org reader: end footnotes after two blank linesAlbert Krewinkel1-59/+74
Footnotes can not only be terminated by the start of a new footnote or a header, but also by two consecutive blank lines.
2017-10-06LaTeX reader: read polyglossia/babel \text($LANG){...}.bucklereed1-0/+20
2017-10-02Removed spuriously added test/pandoc.tix.John MacFarlane1-1/+0
2017-10-02Markdown reader: Fixed bug with indented code following raw LaTeX.John MacFarlane1-0/+11
Closes #3947.
2017-10-02Org reader: support `\n` export optionAlbert Krewinkel1-0/+7
The `\n` export option turns all newlines in the text into hard linebreaks. Closes #3950
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