Mauro Bieg
5809d5bef2
AsciiDoc Writer: escape square brackets at start of line ( #4708 )
...
closes #4545
2018-07-12 19:37:37 +02:00
Alexander Krotov
41cf6d540f
More spellcheck
2018-07-02 19:07:28 +03:00
John MacFarlane
016e0a09e2
RST writer: don't treat 'example' as a syntax name.
...
This fixes conversions from org with example blocks.
Closes #4748 .
2018-06-30 11:45:49 +02:00
Anders Waldenborg
904924d172
CommonMark reader: Handle ascii_identifiers extension ( #4733 )
...
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-29 10:41:26 +02:00
Mauro Bieg
0459d1be26
TikiWiki reader: improve list parsing ( #4723 )
...
- remove trailing Space from list items
- parse lists that have no space after marker (fixes #4722 )
2018-06-28 13:35:54 +02:00
John MacFarlane
48a505c5a0
Markdown reader: allow empty code spans.
...
E.g. `` ` ` ``.
2018-06-13 11:12:10 -07:00
Mauro Bieg
7e477db95c
LaTeX Reader: parse figure label into Image id ( #4704 )
...
closes #4700
2018-06-13 10:41:30 -07:00
John MacFarlane
a41222db3e
Adjust command test not to use echo.
...
This is fraught on Windows.
2018-06-11 10:53:56 -07:00
Mauro Bieg
905dee6ee3
beamer output: fix single digit column percentage ( #4691 )
...
fixes #4690
2018-06-07 10:50:14 -07:00
John MacFarlane
d32e866449
LaTeX reader: handle includes without surrounding blanklines.
...
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-06-01 09:25:10 -07:00
John MacFarlane
7119715a6a
LaTeX reader rawLaTeXBlock
: handle macros that resolve to a...
...
...`\begin` or `\end`.
Fixes #4667 .
2018-05-30 12:49:01 -07:00
John MacFarlane
252ab9b773
Markdown writer: preserve implicit_figures
with attributes...
...
...even if `implicit_attributes` is not set, by rendering in
raw HTML.
Fixes #4677 .
2018-05-30 09:24:52 -07:00
John MacFarlane
58447bba98
rawLaTeXBlock: don't expand macros in macro definitions!
...
Closes #4653 . Note that this only affected LaTeX in markdown.
Added regression test.
2018-05-15 09:19:13 -07:00
John MacFarlane
a00ca6f0d8
Removed inadvertently added .orig files from repository.
...
These were added by
96d10c72cc
Closes #4648 .
2018-05-11 17:10:32 -07:00
John MacFarlane
d3be567a73
Fix regression with tex math environments in HTML + MathJax.
...
Closes #4639 .
2018-05-09 10:37:04 -07:00
John MacFarlane
81881ce470
Parsing: Lookahead for non-whitespace after single/double quote start.
...
Closes #4637 .
2018-05-09 10:00:34 -07:00
John MacFarlane
44f1c72b28
Add test for #4576 .
...
Closes #4576 .
2018-05-08 09:14:58 -07:00
John MacFarlane
a96c762a10
RST reader: fix anonymous redirects with backticks.
...
Closes #4598 .
2018-04-26 12:23:25 -07:00
John MacFarlane
aba0f7e063
Add tests for #4589 and #4594 (currently failing).
2018-04-25 23:04:08 -07:00
John MacFarlane
dab3330a58
RST reader: allow < 3 spaces indent under directives.
...
Closes #4579 .
2018-04-22 12:20:25 -07:00
John MacFarlane
7fbe473b2e
Markdown reader/writer: spacing adjustments in tables.
...
* 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-21 13:06:57 -07:00
John MacFarlane
276894a2f2
RST writer: use more consistent indentation.
...
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-19 13:47:16 -07:00
John MacFarlane
d5b98c8c6e
Man writer: Don't escape U+2019 as '.
...
Closes #4550 .
2018-04-14 10:42:05 -07:00
John MacFarlane
d77e8f45c9
LaTEX reader: properly resolve section numbers with \ref and chapters.
...
Closes #4529 .
2018-04-05 10:14:06 -07:00
quasicomputational
13538ce6eb
CommonMark writer: correctly ignore LaTeX raw blocks when not raw_tex ( #4533 )
...
Issue #4527 .
2018-04-05 08:53:42 -07:00
Marc Schreiber
16523ea3d1
LaTeX reader: parse sloppypar environment ( #4517 )
2018-04-02 09:33:29 -07:00
John MacFarlane
b9602766d8
Textile reader: fixed tables with no body rows.
...
Previously these raised an exception.
Closes #4513 .
2018-03-30 14:56:36 -07:00
John MacFarlane
5a79948e0c
Mediawiki reader: improve table parsing.
...
This fixes detection of table attributes and also
handles `!` characters in cells.
Closes #4508 .
2018-03-28 08:59:34 -07:00
Marc Schreiber
155a2ac039
Add support to parse unit string of \SI command ( closes #4296 ).
2018-03-17 20:59:20 -07:00
Francesco Occhipinti
e5845f33ad
Don't wrap lines in grid tables when --wrap=none
( #4320 )
...
* 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-17 20:31:43 -07:00
John MacFarlane
b76c0e6a4a
RST reader: Allow unicode bullet characters.
...
Closes #4454 .
2018-03-14 17:33:00 -07:00
John MacFarlane
17725a0661
Beamer: put hyperlink after \begin{frame}
.
...
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-13 10:03:51 -07:00
John MacFarlane
adefd86cd4
LaTeX reader: Fix regression in package options including underscore.
...
Closes #4424 .
2018-03-02 09:33:18 -08:00
John MacFarlane
377640402f
LaTeX reader: Fixed comments inside citations. Closes #4374 .
2018-02-17 23:06:54 -08:00
Henri Menke
751b5ad010
ConTeXt writer: new section syntax and --section-divs ( #4295 )
...
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-25 11:56:28 -08:00
John MacFarlane
ac08a887cf
Markdown reader: Fix parsing bug with nested fenced divs.
...
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-20 14:44:08 -08:00
John MacFarlane
957c0e110d
RST reader: fix parsing of headers with trailing space.
...
This was a regression in pandoc 2.0.
Closes #4280 .
2018-01-20 11:10:09 -08:00
John MacFarlane
ca8cd38bdc
Markdown reader: don't coalesce adjacent raw LaTeX blocks...
...
if they are separated by a blank line.
See lierdakil/pandoc-crossref#160 for motivation.
2018-01-17 09:22:35 -08:00
John MacFarlane
615a99c2c2
RST reader: add aligned environment when needed in math.
...
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-14 15:11:11 -08:00
John MacFarlane
d9584d73f9
Markdown reader: Improved inlinesInBalancedBrackets.
...
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-14 12:24:21 -08:00
John MacFarlane
e7d95cadf5
LaTeX reader: pass through macro defs in rawLaTeXBlock...
...
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-13 22:12:32 -08:00
John MacFarlane
dca0032b0e
LaTeX reader: allow macro definitions inside macros.
...
Previously we went into an infinite loop with
```
\newcommand{\noop}[1]{#1}
\noop{\newcommand{\foo}[1]{#1}}
\foo{hi}
```
See #4253 .
2018-01-13 12:22:25 -08:00
John MacFarlane
49007ded7b
RST reader: better handling for headers with an anchor.
...
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-10 12:07:33 -08:00
John MacFarlane
13f7c2cf83
Fixed a test case so it works on windows too.
2018-01-09 17:45:02 -08:00
John MacFarlane
e3f01235e9
HTML writer: Fixed footnote backlinks with --id-prefix.
...
Closes #4235 .
2018-01-09 15:29:27 -08:00
John MacFarlane
3c93ac5cf0
LaTeX reader: be more tolerant of &
character.
...
This allows us to parse unknown tabular environments
as raw LaTeX. Closes #4208 .
2017-12-28 08:41:53 -08:00
John MacFarlane
acfa846aab
Merge pull request #4184 from mb21/html-reader-figcaption
...
HTML Reader: be more forgiving about figcaption
2017-12-27 13:33:00 -07:00
John MacFarlane
a888083ee1
HTML reader: parse div with class line-block
as LineBlock.
...
See #4162 .
2017-12-27 12:26:15 -08:00
John MacFarlane
9e1d86638c
LaTeX reader: support \foreignlanguage
from babel.
2017-12-26 10:57:57 -08:00
John MacFarlane
ee5fe9bf2c
RST reader: allow empty list items (as docutils does).
...
Closes #4193 .
2017-12-24 13:02:18 -08:00