aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2018-07-23Org reader: fix parsers relying on parseFromStringAlbert Krewinkel1-0/+11
Emphasis was not parsed when it followed directly after some block types (e.g., lists). The org reader uses a wrapper for the `parseFromString` function to handle org-specific state. The last position of a character allowed before emphasis was reset incorrectly in this wrapper. Emphasized text was not recognized when placed directly behind a block which the reader parses using `parseFromString`. Fixes: #4784
2018-07-21RST reader: fix double-link bug.John MacFarlane1-0/+6
Link labels containing raw URLs were parsed as autolinks, but links within links are not allowed. Closes #4581.
2018-07-19Fix for bug in parsing `\include` in markdown.John MacFarlane1-0/+22
Starting in 2.2.2, everything after an `\input` (or `\include`) in a markdown file would be parsed as raw LaTeX. This commit fixes the issue and adds a regression test. Closes #4781.
2018-07-15Make markdown and github writers respect the `emoji` extension.John MacFarlane1-0/+27
2018-07-15Wrap emojis in span nodes (#4759)Anders Waldenborg3-2/+29
Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span inline containing the emoji character and some attributes with metadata (class `emoji`, attribute `data-emoji` with emoji name). Previously, emojis (as supported in Markdown and CommonMark readers, e.g ":smile:") were simply translated into the corresponding unicode code point. By wrapping them in Span nodes, we make it possible to do special handling such as giving them a special font in HTML output. We also open up the possibility of treating them differently when the `--ascii` option is selected (though that is not part of this commit). Closes #4743.
2018-07-12AsciiDoc Writer: escape square brackets at start of line (#4708)Mauro Bieg1-0/+20
closes #4545
2018-07-02More spellcheckAlexander Krotov9-7/+7
2018-06-30RST writer: don't treat 'example' as a syntax name.John MacFarlane1-0/+16
This fixes conversions from org with example blocks. Closes #4748.
2018-06-29CommonMark reader: Handle ascii_identifiers extension (#4733)Anders Waldenborg1-0/+25
Non-ascii characters were not stripped from identifiers even if the `ascii_identifiers` extension was enabled (which is is by default for gfm). Closes #4742
2018-06-28TikiWiki reader: improve list parsing (#4723)Mauro Bieg2-29/+63
- remove trailing Space from list items - parse lists that have no space after marker (fixes #4722)
2018-06-25Texinfo writer: use @sup and @sub instead of custom macrosAlexander Krotov1-22/+2
Fixes #4728
2018-06-13Markdown reader: allow empty code spans.John MacFarlane1-0/+6
E.g. `` ` ` ``.
2018-06-13LaTeX Reader: parse figure label into Image id (#4704)Mauro Bieg2-2/+2
closes #4700
2018-06-12FB2 writer: convert Plain to Para in annotationAlexander Krotov1-1/+1
Address #2424
2018-06-12FB2 writer: fix order of items in title-infoAlexander Krotov1-1/+1
Address issue #2424
2018-06-11Adjust command test not to use echo.John MacFarlane1-1/+2
This is fraught on Windows.
2018-06-09Use skylighting 0.7.2. Adjust tests.John MacFarlane2-12/+8
This should fix commercialhaskell/stackage#3719, once a new release is made.
2018-06-07beamer output: fix single digit column percentage (#4691)Mauro Bieg3-6/+33
fixes #4690
2018-06-01LaTeX reader: handle includes without surrounding blanklines.John MacFarlane2-0/+16
In addition, `\input` can now be used in an inline context, e.g. to provide part of a paragraph, as it can in LaTeX. Closes #4553.
2018-05-31Muse reader: add support for floating imagesAlexander Krotov1-0/+6
2018-05-31Muse reader: add support for images with specified widthAlexander Krotov1-0/+6
2018-05-30LaTeX reader `rawLaTeXBlock`: handle macros that resolve to a...John MacFarlane1-0/+20
...`\begin` or `\end`. Fixes #4667.
2018-05-30Markdown writer: preserve `implicit_figures` with attributes...John MacFarlane1-0/+7
...even if `implicit_attributes` is not set, by rendering in raw HTML. Fixes #4677.
2018-05-30Muse reader: parse image URLs without "guard" and "takeExtension"Alexander Krotov1-0/+3
2018-05-27Muse reader: test image with space in filenameAlexander Krotov1-0/+3
2018-05-15rawLaTeXBlock: don't expand macros in macro definitions!John MacFarlane1-0/+8
Closes #4653. Note that this only affected LaTeX in markdown. Added regression test.
2018-05-14Make internal links work in ODT/OpenDocument.John MacFarlane1-44/+53
This adds proper bookmarks to the headers with non-null IDs. Closes #4358.
2018-05-11Removed inadvertently added .orig files from repository.John MacFarlane79-10389/+0
These were added by https://github.com/schrieveslaach/pandoc/commit/96d10c72cc95e56c9e49db3e6db7118e89d1f1e0 Closes #4648.
2018-05-10Use texmath-0.11.John MacFarlane1-1/+1
2018-05-09Fix regression with tex math environments in HTML + MathJax.John MacFarlane1-0/+10
Closes #4639.
2018-05-09Parsing: Lookahead for non-whitespace after single/double quote start.John MacFarlane1-0/+6
Closes #4637.
2018-05-08Another try at test-pandoc-utils.lua on windows.John MacFarlane1-3/+2
2018-05-08test-pandoc-utils.lua - add diagnostic for windows test.John MacFarlane1-0/+1
2018-05-08More adjustments to test-pandoc-utils.lua.John MacFarlane1-5/+4
We need to find something that will work on windows.
2018-05-08test-pandoc-utils.lua - use tr instead of sed.John MacFarlane1-1/+1
It should be installed on all *nix systems.
2018-05-08test-pandoc-utils.lua: workaround some local differences in 'echo'.John MacFarlane1-2/+2
2018-05-08test-pandoc-utils.lua: remove problems with missing `/bin/false`.John MacFarlane1-13/+22
Previously it was assumed that the system would have `/bin/false` and `/bin/sed`, and these tests were skipped otherwise. On MacOS, these utilities are located in `/usr/bin`. Fixed by just using `sed` and `false` -- these should always be in the path. Removed the "skipping" behavior, replaced with a check for Windows. On Windowns, we use `echo` and `cd`, which should always exist. Not yet checked on Windows.
2018-05-08Support underline in docx writer.John MacFarlane1-0/+0
Updated golden test and confirmed validity of file. Closes #4633.
2018-05-08Add test for #4576.John MacFarlane1-0/+6
Closes #4576.
2018-05-07Muse writer: add support for left-align and right-align classesAlexander Krotov1-0/+6
Address issue #4542
2018-05-01Update tests for #4605.John MacFarlane2-2/+2
2018-04-29Test Lua filter converting display math to inline mathAlexander Krotov2-1/+18
2018-04-27RST writer: preserve empty inline parents in flatten (#4603)Francesco Occhipinti1-0/+3
2018-04-26Add FB2 reader (#4539)Alexander12-0/+171
2018-04-26Merge branch 'fb2-hrblankline' of https://github.com/labdsf/pandoc into ↵John MacFarlane4-56/+144
labdsf-fb2-hrblankline
2018-04-26RST reader: fix anonymous redirects with backticks.John MacFarlane1-0/+10
Closes #4598.
2018-04-26RST reader: flatten nested inlines, closes #4368 (#4554)Francesco Occhipinti2-7/+31
nested inlines are not valid RST syntax, so we flatten them following some readability criteria discussed in #4368.
2018-04-26Muse reader: allow nested footnotesAlexander Krotov1-0/+9
2018-04-25Add tests for #4589 and #4594 (currently failing).John MacFarlane2-0/+38
2018-04-25Ms template: Fix date.John MacFarlane1-1/+4
Previously .ND was used, but this only works if you have a title page, which we don't. Thanks to @teoric.