aboutsummaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)Author
2018-07-15Make markdown and github writers respect the `emoji` extension.John MacFarlane
2018-07-15Wrap emojis in span nodes (#4759)Anders Waldenborg
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 Bieg
closes #4545
2018-07-02More spellcheckAlexander Krotov
2018-06-30RST writer: don't treat 'example' as a syntax name.John MacFarlane
This fixes conversions from org with example blocks. Closes #4748.
2018-06-29CommonMark reader: Handle ascii_identifiers extension (#4733)Anders Waldenborg
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 Bieg
- remove trailing Space from list items - parse lists that have no space after marker (fixes #4722)
2018-06-13Markdown reader: allow empty code spans.John MacFarlane
E.g. `` ` ` ``.
2018-06-13LaTeX Reader: parse figure label into Image id (#4704)Mauro Bieg
closes #4700
2018-06-11Adjust command test not to use echo.John MacFarlane
This is fraught on Windows.
2018-06-07beamer output: fix single digit column percentage (#4691)Mauro Bieg
fixes #4690
2018-06-01LaTeX reader: handle includes without surrounding blanklines.John MacFarlane
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-30LaTeX reader `rawLaTeXBlock`: handle macros that resolve to a...John MacFarlane
...`\begin` or `\end`. Fixes #4667.
2018-05-30Markdown writer: preserve `implicit_figures` with attributes...John MacFarlane
...even if `implicit_attributes` is not set, by rendering in raw HTML. Fixes #4677.
2018-05-15rawLaTeXBlock: don't expand macros in macro definitions!John MacFarlane
Closes #4653. Note that this only affected LaTeX in markdown. Added regression test.
2018-05-11Removed inadvertently added .orig files from repository.John MacFarlane
These were added by https://github.com/schrieveslaach/pandoc/commit/96d10c72cc95e56c9e49db3e6db7118e89d1f1e0 Closes #4648.
2018-05-09Fix regression with tex math environments in HTML + MathJax.John MacFarlane
Closes #4639.
2018-05-09Parsing: Lookahead for non-whitespace after single/double quote start.John MacFarlane
Closes #4637.
2018-05-08Add test for #4576.John MacFarlane
Closes #4576.
2018-04-26RST reader: fix anonymous redirects with backticks.John MacFarlane
Closes #4598.
2018-04-25Add tests for #4589 and #4594 (currently failing).John MacFarlane
2018-04-22RST reader: allow < 3 spaces indent under directives.John MacFarlane
Closes #4579.
2018-04-21Markdown reader/writer: spacing adjustments in tables.John MacFarlane
* Markdown writer now includes a blank line at the end of the row in a single-row multiline table, to prevent it from being interpreted as a simple table. Closes #4578. * Markdown reader does a better job computing the relative width of the last column in a multiline table, so we can round-trip tables without constantly shrinking the last column.
2018-04-19RST writer: use more consistent indentation.John MacFarlane
Previously we used an odd mix of 3- and 4-space indentation. Now we use 3-space indentation, except for ordered lists, where indentation must depend on the width of the list marker. Closes #4563.
2018-04-14Man writer: Don't escape U+2019 as '.John MacFarlane
Closes #4550.
2018-04-05LaTEX reader: properly resolve section numbers with \ref and chapters.John MacFarlane
Closes #4529.
2018-04-05CommonMark writer: correctly ignore LaTeX raw blocks when not raw_tex (#4533)quasicomputational
Issue #4527.
2018-04-02LaTeX reader: parse sloppypar environment (#4517)Marc Schreiber
2018-03-30Textile reader: fixed tables with no body rows.John MacFarlane
Previously these raised an exception. Closes #4513.
2018-03-28Mediawiki reader: improve table parsing.John MacFarlane
This fixes detection of table attributes and also handles `!` characters in cells. Closes #4508.
2018-03-17Add support to parse unit string of \SI command (closes #4296).Marc Schreiber
2018-03-17Don't wrap lines in grid tables when `--wrap=none` (#4320)Francesco Occhipinti
* Annotate gridTable code with comments and abstract small functions * Don't wrap lines in tables when `--wrap=none`. Instead, expand cells, even if it results in cells that don't respect relative widths or surpass page column width. * This change affects RST, Markdown, and Haddock writers.
2018-03-14RST reader: Allow unicode bullet characters.John MacFarlane
Closes #4454.
2018-03-13Beamer: put hyperlink after `\begin{frame}`.John MacFarlane
and not in the title. If it's in the title, then we get a titlebar on slides with the `plain` attribute, when the id is non-null. This fixes a regression from 1.9.x. Closes #4307.
2018-03-02LaTeX reader: Fix regression in package options including underscore.John MacFarlane
Closes #4424.
2018-02-17LaTeX reader: Fixed comments inside citations. Closes #4374.John MacFarlane
2018-01-25ConTeXt writer: new section syntax and --section-divs (#4295)Henri Menke
Fixes #2609. This PR introduces the new-style section headings: `\section[my-header]{My Header}` -> `\section[title={My Header},reference={my-header}]`. On top of this, the ConTeXt writer now supports the `--section-divs` option to write sections in the fenced style, with `\startsection` and `\stopsection`.
2018-01-20Markdown reader: Fix parsing bug with nested fenced divs.John MacFarlane
Closes #4281. Previously we allowed "nonindent spaces" before the opening and closing `:::`, but this interfered with list parsing, so now we require the fences to be flush with the margin of the containing block.
2018-01-20RST reader: fix parsing of headers with trailing space.John MacFarlane
This was a regression in pandoc 2.0. Closes #4280.
2018-01-17Markdown reader: don't coalesce adjacent raw LaTeX blocks...John MacFarlane
if they are separated by a blank line. See lierdakil/pandoc-crossref#160 for motivation.
2018-01-14RST reader: add aligned environment when needed in math.John MacFarlane
rst2latex.py uses an align* environment for math in `.. math::` blocks, so this math may contain line breaks. If it does, we put the math in an `aligned` environment to simulate rst2latex.py's behavior. Closes #4254.
2018-01-14Markdown reader: Improved inlinesInBalancedBrackets.John MacFarlane
The change both improves performance and fixes a regression whereby normal citations inside inline notes were not parsed correctly. Closes jgm/pandoc-citeproc#315.
2018-01-13LaTeX reader: pass through macro defs in rawLaTeXBlock...John MacFarlane
even if the `latex_macros` extension is set. This reverts to earlier behavior and is probably safer on the whole, since some macros only modify things in included packages, which pandoc's macro expansion can't modify. Closes #4246.
2018-01-13LaTeX reader: allow macro definitions inside macros.John MacFarlane
Previously we went into an infinite loop with ``` \newcommand{\noop}[1]{#1} \noop{\newcommand{\foo}[1]{#1}} \foo{hi} ``` See #4253.
2018-01-10RST reader: better handling for headers with an anchor.John MacFarlane
Instead of creating a div containing the header, we put the id directly on the header. This way header promotion will work properly. Closes #4240.
2018-01-09Fixed a test case so it works on windows too.John MacFarlane
2018-01-09HTML writer: Fixed footnote backlinks with --id-prefix.John MacFarlane
Closes #4235.
2017-12-28LaTeX reader: be more tolerant of `&` character.John MacFarlane
This allows us to parse unknown tabular environments as raw LaTeX. Closes #4208.
2017-12-27Merge pull request #4184 from mb21/html-reader-figcaptionJohn MacFarlane
HTML Reader: be more forgiving about figcaption
2017-12-27HTML reader: parse div with class `line-block` as LineBlock.John MacFarlane
See #4162.