Commit graph

5622 commits

Author SHA1 Message Date
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
John MacFarlane
edce81734e Avoid using deprecated 'decode' from yaml. 2018-06-28 17:38:58 +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
06bcb7c872 Remove network-uri flag and use 'Network.Socket'.
This removes a compiler warning.
There is no need for the old network-uri flag, since
network 2.6 was released in 2014.
2018-06-28 11:51:52 +02:00
John MacFarlane
45904ab27f LaTeX reader: Treat lilypond as a verbatim environment.
Closes #4725.
2018-06-25 22:16:58 +02:00
John MacFarlane
7eb08169aa Fixed typo in LaTeX writer. 2018-06-25 22:16:58 +02:00
Alexander Krotov
ebf4ed8944 Texinfo writer: use @sup and @sub instead of custom macros
Fixes #4728
2018-06-25 03:14:04 +03: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
Raymond Ehlers
2c1a309c9f Beamer: Allow "noframenumbering" option (#4696)
As noted [here](https://tex.stackexchange.com/a/49805) ([beamer
commit here](ff70090f36)),
`noframenumbering` is an undocumented, but long existing option
to disable frame numbering for a particular slide. This is useful
to avoid numbering backup slides.
2018-06-12 10:39:20 -07:00
John MacFarlane
07bce91f4f Allow --template to take a URL argument. 2018-06-12 10:33:34 -07:00
John MacFarlane
4173460689 reveal.js writer and template: reuse mathjax URL...
...provided by the argument to `--mathjax` or the normal
pandoc default, rather than a hard-coded one in the template.

Closes #4701.
2018-06-12 09:35:27 -07:00
John MacFarlane
1e45bb0041 LaTeX reader: allow spaces around \graphicspath arguments.
Closes #4698.
2018-06-12 09:25:42 -07:00
Alexander Krotov
b6305a63cd FB2 writer: convert Plain to Para in annotation
Address #2424
2018-06-12 15:32:30 +03:00
Alexander Krotov
54d16545c9 FB2 writer: fix order of items in title-info
Address issue #2424
2018-06-12 14:48:52 +03:00
John MacFarlane
c1ae8d00ee LaTeX writer: properly handle footnotes in table captions.
Refactored code from figure captions to use in both places.

Closes #4683.
2018-06-07 21:30:14 -07:00
Mauro Bieg
905dee6ee3 beamer output: fix single digit column percentage (#4691)
fixes #4690
2018-06-07 10:50:14 -07:00
Adrian Sieber
9536eb7c79 Add missing re-export of "breezeDark" style (#4687) 2018-06-05 09:50:34 -07:00
Mauro Bieg
764bf86177 Regression: make --pdf-engine work with full paths (#4682)
Fixes #4681.
2018-06-03 13:59:11 -07:00
John MacFarlane
6ea706256d Support --number-sections in RST output...
via the "section-numbering" directive in standalone output.
2018-06-02 21:37:15 -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
mb21
0fc7d38544 Muse reader: get rid of non-exhaustive pattern match warning 2018-06-01 15:36:36 +02:00
Alexander Krotov
5fbc981fc2 Muse reader: add support for floating images 2018-05-31 23:31:27 +03:00
Alexander Krotov
1f78efff3b Muse reader: add support for images with specified width 2018-05-31 01:07:51 +03:00
kaizhang91
5a0e21b992 Clarify how Ext_east_asian_line_breaks extension works (API docs).
Note that it will not take effect when readers/writers are called as libraries (#4674).
2018-05-30 13:43:58 -07:00
John MacFarlane
aff401745c Revert "ALlow compilation with haddock-library 1.4 and above."
This reverts commit 50c71b5bc5.

This was a bad idea, since tests depend on recent haddock-library.
We'd be able to build but fail tests.
2018-05-30 13:13:57 -07:00
John MacFarlane
50c71b5bc5 ALlow compilation with haddock-library 1.4 and above.
haddock-library-1.6 requires Cabal >= 2.0.  This change allows
systems with older Cabal versions to build pandoc.
2018-05-30 13:06:44 -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
0dbbf16c3a LaTeX reader: tighten up reading of beamer overlay specifications.
Ideally we'd turn these on only when reading beamer, but currently
beamer is not distinguished from latex as an input format.

This commit also activates parsing of overlay specifications
after commands in general (e.g. `\item`), since they can occur
in many contexts in beamer.

Closes #4669.
2018-05-30 10:08:51 -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
Alexander Krotov
1100bfc0e6 Muse reader: parse image URLs without "guard" and "takeExtension" 2018-05-30 02:29:43 +03:00
Alexander Krotov
bdf8c01f2c Muse reader: split link and image parsing into separate functions 2018-05-28 01:24:09 +03:00
Alexander Krotov
91aceeeff3 Muse reader: parse links starting with "URL:" explicitly
instead of trying to strip "URL:" prefix after parsing.
2018-05-27 23:58:02 +03:00
John MacFarlane
81ed7948da Use haddock-library 1.6.0. 2018-05-20 17:05:23 -07:00
John MacFarlane
884aef31c5 LaTeX reader: parse more siunitx unit commands.
Improves on earlier fix for #4296.
2018-05-16 15:50:26 -07:00
Albert Krewinkel
48ba3e815f
Custom writer: fix error message on script failure
Error messages produced by Lua were not displayed by Pandoc. The writer
was using the bottom-most stack element, while the error message is the
top-most element. This lead to the writer to always show "Lua 5.3" as
error message, disregarding the actual message.
2018-05-16 22:41:54 +02: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
2936967fa1 Docx writer: be sensitive to toc in YAML metadata.
Closes #4645.
2018-05-14 11:10:36 -07:00
John MacFarlane
2b89aaf04d Make internal links work in ODT/OpenDocument.
This adds proper bookmarks to the headers with non-null IDs.
Closes #4358.
2018-05-14 10:37:46 -07:00
John MacFarlane
f240adfc13 EPUB writer: properly escape pagetitle.
Previously we weren't escaping `&` and other XML characters
in the pagetitle, so a title containing a `&` would be invalid.
2018-05-12 09:31:15 -07:00
Albert Krewinkel
d30fbc2879
Org reader: fix image filename recognition
Use a function from the *filepath* library to check whether a string is
a valid file name. The custom validity checker that was used before gave
wrong results, e.g. for absolute file paths on
Windows (kawabata/ox-pandoc#52).
2018-05-09 23:08:53 +02:00
John MacFarlane
b7356d3ddf Restored and undeprecated gladtex for HTML math.
- Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
  [API change, reverts removal in v2.2]
- Restored and undeprecated `--gladtex` option, removed in v2.2.

Closes #4607.
2018-05-09 11:29:20 -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
b8231a8eca Fixed bug in uriPathToPath for Windows. 2018-05-08 11:31:00 -07:00
John MacFarlane
40603dd4cd Support underline in docx writer.
Updated golden test and confirmed validity of file.

Closes #4633.
2018-05-08 10:17:51 -07:00
John MacFarlane
780bf64d1d Use uriPathToPath with file: URIs.
Closes #4613.

Needs testing on Windows.
2018-05-08 09:56:42 -07:00
John MacFarlane
3a291dad35 Shared: add uriPathToPath.
This adjusts the path from a file: URI in a way that is sensitive
to Windows/Linux differences.  Thus, on Windows,
`/c:/foo` gets interpreted as `c:/foo`, but on Linux,
`/c:/foo` gets interpreted as `/c:/foo`.

See #4613.
2018-05-08 09:56:42 -07:00
John MacFarlane
eb733d1365 LaTeX reader: handle $ in /text{..} inside math.
This fixes the main problem in #4576.
There is still an issue about `\SI`, but that's a separate issue.
2018-05-08 09:11:39 -07:00
John MacFarlane
0d83ce3bc4 HTML writer: Strip links from headers when creating TOC.
Otherwise the TOC entries will not link to the sections.
Closes #4340.
2018-05-07 17:44:05 -07:00