Commit graph

15211 commits

Author SHA1 Message Date
John MacFarlane
645668f3ad Fix typo in changelog. 2022-01-30 12:30:50 -08:00
John MacFarlane
0bd62ddeaf Update man page. 2022-01-30 11:17:18 -08:00
John MacFarlane
cb93a08e8a Update AUTHORS.md. 2022-01-30 11:12:41 -08:00
John MacFarlane
3933480c83 Minor changelog fixes. 2022-01-30 11:10:54 -08:00
John MacFarlane
5c6b0c3abd Fix identifier in lua-filters doc. 2022-01-30 11:07:44 -08:00
John MacFarlane
96ab241056 lua-filters: put all parameters in code font. 2022-01-30 11:06:30 -08:00
John MacFarlane
222fb2a445 Move beamerarticle in MANUAL.
It should be documented under "Variables for LaTeX", not
"for Beamer."  Closes #7874.
2022-01-30 09:43:42 -08:00
John MacFarlane
9f282a025e Bump to 2.17.1. Provisionally update changelog. 2022-01-29 23:16:10 -08:00
John MacFarlane
a246107347 LaTeX reader: ensure that \raggedright doesn't gobble an argument.
See #7757.
2022-01-29 22:15:04 -08:00
John MacFarlane
148cf8a064 Document --trace option.
Closes #7873.
2022-01-29 21:57:46 -08:00
John MacFarlane
5e42189ddb Document no-check-certificate in defaults files.
See #7873.
2022-01-29 21:54:12 -08:00
John MacFarlane
9f4693d003 Document 'sandbox' option for defaults files.
See #7873.
2022-01-29 21:51:30 -08:00
John MacFarlane
c348c4d4fe Use [x] not [X] for asciidoctor checklists.
See #7798.
2022-01-29 17:47:35 -08:00
John MacFarlane
6bb047690e Regenerate man page. 2022-01-29 15:35:57 -08:00
John MacFarlane
989f315a84 manfilter.lua: remove extra indent in table cells with code blocks. 2022-01-29 15:35:37 -08:00
Carsten Allefeld
07e79f68a7 Additional information from comments in example 2022-01-29 14:22:14 -08:00
Carsten Allefeld
a251f3d274 New defaults files documentation 2022-01-29 14:22:14 -08:00
Albert Krewinkel
fbb9fbf9bb
Custom writer: preserve order of element attributes
Attribute key-value pairs are marshaled as AttributeList, i.e., as a
userdata type that behaves both like a list and a map. This allows to
preserve the order of key-value pairs.

Closes: #7489
2022-01-29 22:36:22 +01:00
Albert Krewinkel
412596c30b Switch to hslua-2.1
This allows for some code simplification and improves stability.
2022-01-29 08:43:14 -08:00
Albert Krewinkel
a6fa3df114
HTML writer: avoid duplicate "style" attributes on table cells
Fixes: #7871
2022-01-28 18:20:14 +01:00
Even Brenden
d36a16a4df Don't read files outside of user data directory
If a file path does not exist relative to the working directory, but
it does exist relative to the user data directory, and it exists outside
of the user data directory, do not read it. This applies to readDataFile
and readMetadataFile in PandocMonad and, by extension, any module that
uses these by passing them relative paths.
2022-01-28 08:51:27 -08:00
Even Brenden
e1f8c4b396 Handle consecutive ".."s in makeCanonical
As an example, prior to this commit, "../../file" would evaluate to
"file", when it should be unchanged.
2022-01-28 08:51:27 -08:00
John MacFarlane
7fbce82f2f LaTeX writer: allow arbitrary frameoptions to be passed...
to a beamer frame, using the frameoptions attribute.
Updated manual.

See #7869.
2022-01-27 14:07:51 -08:00
John MacFarlane
4fa042f847 LaTeX writer: add s and squeeze to recognized beamer frameoptions.
Closes #7869.
2022-01-27 14:07:51 -08:00
Even Brenden
bd8b7ca62b
Add metadata file paragraph to Pandoc API doc (#7865) 2022-01-25 08:59:03 -08:00
John MacFarlane
183fb3e327 LaTeX reader: improve descItem.
For some reason we were skipping arbitrary blocks before `\item`.
This is now changed to "skip whitespace and comments."
2022-01-25 08:43:12 -08:00
John MacFarlane
7ddb609aae Fix div position in faqs. 2022-01-24 19:25:06 -08:00
John MacFarlane
623fa4e1b9 Fix lua-filters documentation for table column widths.
See #7864.
2022-01-24 09:29:34 -08:00
John MacFarlane
a9f901cf6b CommonMark reader: fix source position after YAML metadata.
Closes #7863.
2022-01-23 22:13:58 -08:00
John MacFarlane
67f2b25c05 LaTeX reader: improve handling of newif.
Adding a pair of braces around the second argument of `\def`
prevents LaTeX from an emergency stop with:  Closes #6096.

```
pandoc -f markdown -o test.pdf
\newif\ifepub

\epubtrue

\ifepub

hi

\fi
^D
```
2022-01-22 21:48:14 -08:00
Benson Muite
9da69c4759
epub.doc: Update links to KindleGen (#7846)
KindleGen has been deprecated and we need to link to archived versions.

Co-authored-by: Mauro Bieg <mb21@users.noreply.github.com>
2022-01-22 15:31:29 -08:00
John MacFarlane
24fa3ffddb Fix compiler warnings. 2022-01-21 17:28:02 -08:00
John MacFarlane
9e0d146837 Update command tests to distinguish stderr and test exit status. 2022-01-21 15:01:50 -08:00
Even Brenden
7df29e495f
Search for metadata files in $DATADIR/metadata (#7851)
If files specified with `--metadata-file` are not found in the working
directory, look in `$DATADIR/metadata`.

Expose new `readMetadataFile` function from Text.Pandoc.Class
[API change].

Expose new `PandocCouldNotFindMetadataFileError` constructor for
`PandocError` from Text.Pandoc.Error [API change].

Closes #5876.
2022-01-21 12:00:45 -08:00
John MacFarlane
672b6dc7e6 Remove retokenizing in rawLaTeXParser.
This was causing serious problems with `newif` commands.
See #6096.  And it didn't seem to make any difference for
the tests; I assume that, unless there's some untested
behavior, this is something that has now become unnecessary.
2022-01-21 10:17:58 -08:00
John MacFarlane
52b78b10c8 Avoid putting a frame around speaker notes in beamer.
If speaker notes (a Div with class 'notes') occur right
after a section heading, but above slide level, the
resulting `\note{..}` caommand should not be wrapped in
a frame, as that will cause a spurious blank slide.

Closes #7857.
2022-01-20 19:09:44 -08:00
John MacFarlane
6361d43e53 MANUAL: add that speaker notes can be used with beamer.
Closes #7856.
2022-01-20 18:48:14 -08:00
John MacFarlane
ef8135b4a7 HTML writer: don't break lines inside code elements.
With the new (default) line wrapping of HTML, in
conjunction with the default CSS which includes
`code { whitespace: pre-wrap; }`, spurious line
breaks could be introduced into inline code.

Closes #7858.
2022-01-20 09:17:34 -08:00
John MacFarlane
d9ec95e7ab Modify stringify so it ignores [Citation] inside Cite.
Otherwise we'll sometimes get two copies of things, one
from the `citationPrefix` or `citationSuffix` and another
from the embedded fallback text.

When there is no fallback text, we'll get no content.
However, it really isn't an alternative to just rely
on the result of running `query` on the embedded `Citation`s;
this will result in a jumble of text rather than anything
structured.

Closes #7855.
2022-01-19 22:06:06 -08:00
John MacFarlane
89c8f2866e Use skylighting 0.12.2. 2022-01-19 15:44:27 -08:00
John MacFarlane
d5818413ff Docx reader: parse both zotero citation and bibliography...
as FieldInfo.
2022-01-19 10:31:00 -08:00
John MacFarlane
73fe7c129e Docx reader: add skeleton for parsing zotero ADDINs.
So far this just adds a constructor for FieldInfo;
we'll need to adjust the rest of the reader code to
parse the JSON and do something with it.

See #7840.
2022-01-19 10:20:15 -08:00
John MacFarlane
6723891c72 Markdown writer: handle explicit column widths with pipe tables.
If a table has explicit column width information *and* the
content extends beyond the `--columns` width, we need to
adjust the widths of the pipe separators to encode this width
information.

Closes #7847.
2022-01-19 09:36:48 -08:00
Albert Krewinkel
b794b534a5
Remove unused file test/command/jats.csl 2022-01-19 10:12:32 +01:00
Michael Hoffmann
e146b1ff3b
Docx writer: Separate tables even with RawBlocks between (#7844)
Adjacent docx tables need to be separated by an empty paragraph. If
there's a RawBlock between tables which renders to nothing, be sure to
still insert the empty paragraph so that they will not collapse
together.

Fixes #7724
2022-01-18 14:28:28 -08:00
Even Brenden
6b7a688695
Add pandoc-lua-marshal to Nix shell (#7849) 2022-01-18 14:17:04 -08:00
John MacFarlane
13a1e1b54c Add note about api docs to RELEASE_CHECKLIST. 2022-01-17 21:47:16 -08:00
John MacFarlane
d2a9562554 Omit --enable-doc in the cabal haddock invocation.
tools/build-and-upload-api-docs.sh.  I'm not sure what
this was supposed to do but it seems undocumented.
2022-01-17 21:03:25 -08:00
John MacFarlane
c1717378b0 Fix some haddock errors. 2022-01-17 21:03:25 -08:00
John MacFarlane
545c0911aa T.P.App.Opt: fix logic bug in fullDefaultsPath.
Previously we would (also) search the default user data directory
for a defaults file, even if a different user data directory
was specified using `--data-dir`.  This was a mistake; if
`--data-dir` is used, the default user data directory should
not be searched.
2022-01-17 21:03:25 -08:00