Commit Graph
12806 Commits
Author SHA1 Message Date
Marcus Stollsteimer 57e2148ca2 Fix capitalization of "Linux" in docs (#5859) 2019-10-28 10:45:36 -07:00
Albert Krewinkel 88409f9afa doc/lua-filters.md: fix mistakes in mediabag module docs
See: #5851
2019-10-27 23:09:20 +01:00
Albert Krewinkel 909083090a Org reader: fix parsing of empty comment lines
Comment lines in Org-mode can be completely empty; both of these line
should produce no output:

    # a comment
    #

The reader used to produce a wrong result for the latter, but ignores
that line as well now.

Fixes: #5856
2019-10-27 23:00:30 +01:00
John MacFarlane bef124c98c Beamer writer: fix regression with hrules separating slides. 2019-10-25 23:01:29 -07:00
Ole Martin Ruud 45479114e8 HTML reader/writer: Better handling of <q> with cite attribute (#5837)
* HTML reader: Handle cite attribute for quotes.  If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted element with an inner Span.  Closes #5798

* Refactor url canonicalization into a helper function

* Modify HTML writer to handle quote with cite.

[0]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q
2019-10-24 22:27:49 -07:00
John MacFarlane 91c325c714 T.P.Readers.LaTeX.Parsing: add [Tok] parameter to rawLaTeXParser.
This allows us to avoid retokenizing multiple times in
e.g. rawLaTeXBlock.  (Unexported module, so not an API change.)
2019-10-23 09:42:46 -07:00
Amogh Rathore d50f46d26d Add Reader support for HTML <samp> element (#5843)
The `<samp>` element is parsed as a Span with class `sample`.
Closes #5792.
2019-10-23 08:44:24 -07:00
John MacFarlane b80bd174a2 Use latest dev doctemplates 2019-10-16 09:25:52 -07:00
Florian B c55651d761 Add info about command test naming to CONTRIBUTING
Added a paragraph about naming conventions for tests in `test/command/`
to the contributors guide. Advises to include issue number and/or
feature being tested.
2019-10-16 09:09:08 -07:00
Florian B a933ad30fb Add support for reading & writing <mark> elements
Parse <mark> elements from HTML as HTML span like elements, with a
single class matching the tag name `mark`. Mark elements are rendered to
HTML using the native <mark> element.

Fixes https://github.com/jgm/pandoc/issues/5797.
2019-10-16 09:08:12 -07:00
John MacFarlane f1fd120d4a Use latest dev doctemplates. 2019-10-15 22:33:29 -07:00
Volodymyr Kozachynskyi 5af8b422dd Add Void Linux
No real website to package, added simply official webpage as href
2019-10-15 14:50:32 -07:00
Daniele D'Orazio 1425bf9a65 Add support for reading and writing <kbd> elements
* Text.Pandoc.Shared: export `htmlSpanLikeElements` [API change]

This commit also introduces a mapping of HTML span like elements that
are internally represented as a Span with a single class, but that are
converted back to the original element by the html writer. As of now,
only the kbd element is handled this way. Ideally these elements should
be handled as plain AST values, but since that would be a breaking
change with a large impact, we revert to this stop-gap solution.

Fixes https://github.com/jgm/pandoc/issues/5796.
2019-10-15 09:49:09 -07:00
Alexander Krotov a1977dd2d6 Muse reader: do not allow closing asterisks to be followed by "*" 2019-10-15 16:36:05 +03:00
John MacFarlane a0aeb135b3 Minor template & test changes for latest dev doctemplates. 2019-10-14 23:42:29 -07:00
Alexander Krotov d5c13dd438 Muse reader: do not split series of asterisks into symbols and emphasis
Fixes #5821
2019-10-15 01:55:32 +03:00
Alexander Krotov 13e0ac1104 Muse reader: do not terminate emphasis on "*" not followed by space 2019-10-15 01:02:54 +03:00
John MacFarlane d8d784ab54 Fixed typo in example. 2019-10-14 08:48:51 -07:00
mb21 25cb84d8d9 change indentation of math part in Writers/HTML.hs 2019-10-14 08:47:40 -07:00
mb21 bfbff3106d KaTeX math: respect classoption=fleqn variable
closes #5815
2019-10-14 08:47:40 -07:00
mb21 b976486f1f Bump KaTeX version to 0.11.1 2019-10-14 08:47:40 -07:00
John MacFarlane 60ce075370 Create FUNDING.yml 2019-10-14 08:37:18 -07:00
John MacFarlane 4caf033392 Remove appveyor.yml.
Appveyor has been difficult to get working, due to timeouts, and
lately it has been failing for unknown reasons.

We don't need the appveyor build any more, now that we have Windows
CI, nightly, and release-candidate builds on GitHub actions.
2019-10-13 16:54:19 -07:00
John MacFarlane d9db76dcf4 LaTeX writer: fix horizontal rule.
We change to use 0.5pt rather than `\linethickness`, which
apparently only ever worked "by accident" and no longer works
with recent updates to texlive.

Closes #5801.
2019-10-12 23:20:57 -07:00
John MacFarlane 2f32b5316f More documentation of default files 2019-10-11 10:06:01 -07:00
John MacFarlane 9e3e195dd4 Fix gfm_auto_identifiers behavior with emojis.
Closes #5813.

Note that we also now use emoji names for emojis
when `ascii_identifiers` is enabled.
2019-10-11 10:00:33 -07:00
John MacFarlane 7c2dd0359b Markdown writer: prefer pipe_tables to raw html...
...even when we must lose width information.

All in all this seems to be people's preferred behavior, even though it
is slightly lossier.

Closes #2608.
Closes #4497.
2019-10-11 09:46:58 -07:00
John MacFarlane 34e6464e30 Improve sample --defaults file in MANUAL.txt. 2019-10-11 08:57:49 -07:00
John MacFarlane 8a64bd0abf Allow output-file to be null in --defaults. 2019-10-11 08:57:34 -07:00
John MacFarlane c468951d8e Remove redundant import. 2019-10-11 08:20:31 -07:00
John MacFarlane 1985199ce8 stack.yaml - re-add HsYAML-aeson, as pandoc-citeproc uses it 2019-10-11 08:20:27 -07:00
John MacFarlane 7388cd3e7a Improve parsing of --defaults.
- Add FromYAML instances to Opt and to all subsidiary types.
- Remove the use of HsYAML-aeson, which doesn't give good
  position information on errors.
- Rename some fields in Opt to better match cli options or
  reflect what the ycontain [API change]:

  + optMetadataFile -> optMetadataFiles
  + optPDFEngineArgs -> optPDFEngineOpts
  + optWrapText -> optWrap
- Add IpynbOutput enumerated type to Text.Pandoc.App.Opts.
  Use this instead fo a string for optIpynbOutput.
- Add FromYAML instance for Filter in Text.Pandoc.Filters.

With these changes parsing of defaults files should be
complete and should give decent error messages.

Now (unlike before) we get an error if an unknown field
is used.
2019-10-10 23:21:18 -07:00
John MacFarlane 2523941453 Fix examplel for defaults. 2019-10-10 10:34:35 -07:00
John MacFarlane 5085fe605a Added documentation for --defaults. 2019-10-10 10:33:35 -07:00
John MacFarlane 33f70e9819 Add -d as synonym for --defaults. 2019-10-10 10:12:23 -07:00
John MacFarlane 558b91801a Reorder options in --help. 2019-10-10 10:12:05 -07:00
John MacFarlane a3cd74c29b --metadata-file: when multiple files specified, second takes precedence...
on conflicting fields.  This changes earlier behavior (but not in
a release), where first took precedence.

Note that this may seem inconsistent with the behavior of
multiple YAML blocks within a document, where the first takes
precedence.  Still, it is convenient to be able to override
defaults with options later on the command line.
2019-10-10 10:00:45 -07:00
John MacFarlane 68b09a6d81 Make some writers sensitive to 'unlisted' class on headings.
If this is present on a heading with the 'unnumbered' class,
the heading won't appear in the TOC.  This class has no
effect if 'unnumbered' is not also specified.

This affects HTML-based writers (including slide shows
and epub), LateX (including beamer), RTF, and PowerPoint.
Other writers do not yet support `unlisted`.

Closes #1762.
2019-10-10 09:15:40 -07:00
John MacFarlane 2b1361e738 Remove unnecessary import. 2019-10-10 08:36:27 -07:00
John MacFarlane fcefcfec39 --defaults: add .yaml extension if absent, look in user data dir...
under "defaults" subdirectory.
2019-10-09 23:29:25 -07:00
John MacFarlane ff1df241a9 T.P.App.Opt: rename optReader, optWriter as optFrom, optTo.
This will allow to: and from: in defaults.
2019-10-09 21:54:41 -07:00
John MacFarlane 070e098b48 Make sure that input-files works in --default files. 2019-10-09 17:51:33 -07:00
John MacFarlane a3729ef2da RST writer: proper handling of :align: on figures, images.
When the image has the `align-right` (etc.) class, we now use
an `:align:` attribute.

Closes #4420.
2019-10-09 15:05:22 -07:00
John MacFarlane 5ec9044288 Update s5 test for mathjax 3 change. 2019-10-09 14:32:30 -07:00
zorkow f792c7900b Changes in try pandoc 2019-10-09 14:30:25 -07:00
zorkow 3c7f1bf96c Basic changes for MathJax 3. 2019-10-09 14:30:25 -07:00
John MacFarlane 8a77bbf6eb Update cabal.project to use dev version of doctemplates. 2019-10-09 14:23:29 -07:00
John MacFarlane 83702404af Initial implementation of --defaults option.
Need documentation.
2019-10-09 12:44:09 -07:00
John MacFarlane 5419988f22 T.P.App.Opt: Changed optMetadata to Meta, to allow structured values.
[API change]

The current behavior of the `--metadata` option stays the same.
2019-10-09 11:46:20 -07:00
John MacFarlane 3351dcfc45 Add HsYAML-aeson to build-depends 2019-10-09 11:01:33 -07:00