John MacFarlane
1e0d4f16b0
Merge pull request #5590 from blmage/fix-4206
...
Do not override "fileN" medias when writing to EPUB format (fix #4206 )
2019-07-13 16:45:58 -07:00
John MacFarlane
51933c319b
Merge pull request #5604 from jgm/jats-abstract
...
JATS template: add abstract
2019-07-13 16:43:06 -07:00
John MacFarlane
4a5e727c8c
Man writer: Improved definition list term output.
...
Now we boldface code but not other things. This matches the
most common style in man pages (particularly option lists).
Also, remove a regression in the last commit in which 'nowrap'
was removed.
2019-07-13 16:41:43 -07:00
John MacFarlane
d0bf7efe95
Man writer: fixed boldfacing of definition terms.
...
Previously the bold-facing would be interrupted by
other formatting, because we used `.B`.
Closes #5620 .
2019-07-13 16:12:28 -07:00
John MacFarlane
a16311c225
Merge pull request #5606 from blmage/odt-frames
...
Improve the parsing of frames in ODT documents
2019-07-13 15:53:58 -07:00
John MacFarlane
1784161946
LaTeX reader: Properly handle \providecommand and environment...
...
They are now ignored if the corresponding command or environment
is already defined.
Closes #5635 .
2019-07-13 15:51:33 -07:00
John MacFarlane
53e30750ba
An empty commit to correct errors in recent commit messages:
...
- 5f495eaace
closes #5638 , not #5643 .
- 6d30d3e0b3
closes #5642 , not #5646 .
2019-07-13 15:31:51 -07:00
John MacFarlane
5f495eaace
EPUB writer: Use svg tag wrapper for cover image.
...
In addition, the code generating the image has been moved
to the template, to make it more customizable.
Those who use custom EPUB templates will need to adjust their
templates, adding the code to generate the cover image.
(Previously this was just inserted into 'body'.)
Closes #5643 .
2019-07-13 15:20:14 -07:00
mb21
6cf5c3f6ac
fix filename and issue reference of previous commit
2019-07-13 12:03:45 +02:00
John MacFarlane
6d30d3e0b3
Pass through aria- attributes to HTML5.
...
Also document addition of data- prefix to unknown attributes.
Closes #5646 .
2019-07-12 17:03:01 -07:00
John MacFarlane
c497d79dfd
Rebuild man page
2019-07-12 09:51:51 -07:00
John MacFarlane
fe39bb009f
Use -split-sections to reduce linux executable size.
2019-07-12 09:51:24 -07:00
Agustín Martín Barbero
6134616352
Update diff-zip to support windows ( #5641 )
...
Trying to use this script on windows (git-bash) gave several errors:
- *mktemp* complained about missing XXXs in the template (fixed by adding XXX)
- *find* didn't understand the -E switch (fixed by using the equivalent arguments)
- *terminal codes* were not being recognized by the console (-e added to echo)
2019-07-12 09:08:27 -07:00
John MacFarlane
83a0104d5b
Improve diff-docx.sh -> diff-zip.sh.
...
It now can be used on odts, docx, or epubs.
2019-07-10 20:53:40 -07:00
John MacFarlane
2c2d4e2138
Add diff-docx.sh to tools.
2019-07-10 20:28:21 -07:00
Brian Leung
1d9ff85b45
RST reader: keep name
property in imgAttr
. ( #5637 )
...
Closes #5619 .
2019-07-10 18:35:01 -07:00
Mauro Bieg
95d7d1b908
Extensions.hs fix typo in PHP Markdown comment
2019-07-10 09:25:42 +02:00
Arfon Smith
020e2a06d5
Updating JATS template to v1.1dtd ( #5632 )
...
* Updating JATS template to v1.1dtd
* Update writer.jats
2019-07-06 23:31:02 +02:00
Brian Leung
9c4ba81357
Markdown reader: handle inline code more eagerly within lists. ( #5628 )
...
Closes #5627 .
2019-07-06 23:14:21 +02:00
Arfon Smith
1e80288606
Update data/jats.csl to avoid commas between editor name-part elements. ( #5629 )
2019-07-05 13:07:51 +02:00
John MacFarlane
c20f1635c9
Remove misleading comment in man, ms templates.
2019-07-04 19:26:24 +02:00
Pete Ryland
24c781039f
Fix redundant constraint warnings. ( #5625 )
2019-07-02 10:29:34 +02:00
niszet
b6c53553a9
Update Lua function names in pandoc.system
...
Fixed function names of pandoc.system.get_working_directory() and
pandoc.system.with_temporary_directory() which are written in the
manual of lua filter.
2019-06-23 14:03:14 +02:00
martinfrancois
4b73544087
add tests for EPUB2 and EPUB3 cover reader
2019-06-22 22:07:26 +02:00
Mauro Bieg
ecea807397
JATS Writer: do not emit empty <fn-group> ( #5595 )
...
introduced by e87b54dcad
2019-06-21 19:06:28 +02:00
oquechy
f0edf60364
Support epigraph command in LaTeX Reader.
...
Closes #3523 .
2019-06-21 18:27:26 +02:00
blmage
449c133406
Add a test for MathML formulas in ODT documents
2019-06-20 21:55:31 +02:00
blmage
e683707d60
Improve the parsing of frames in ODT documents
2019-06-20 21:54:30 +02:00
Mauro Bieg
77ccfa6217
JATS template: add abstract
2019-06-20 15:44:48 +02:00
blmage
43347888d5
Handle the case where the "cover" meta does not link to the manifest
2019-06-18 19:09:53 +02:00
blmage
efe318b3f6
Add support for EPUB2 covers ( fix #3992 )
2019-06-18 19:09:53 +02:00
blmage
45b7460959
Do not override existing "fileN" medias when writing to EPUB format ( fix #4206 )
2019-06-18 19:06:18 +02:00
Jeroen de Haas
e67f4c58f2
Powerpoint code formatting is now context dependent ( #5573 )
...
This commit alters the way in which the Powerpoint writer treats
inline code and code blocks.
- Inline code is now formatted at the same size as the surrounding
text.
- Code blocks are now given a margin and font size according to their
level.
- Furthermore this commit allows changing the font with which code is
formatted via the `monofont` option.
Tested in
- PowerPoint 365 for Windows - 1808 (Build 10730.20344 Click-to-Run)
- PowerPoint 365 for Mac - 16.26 (19060901)
2019-06-14 08:42:06 -07:00
John MacFarlane
2cd1c7b30f
Update test for skylighting 0.8.1.1.
2019-06-13 19:33:52 -07:00
John MacFarlane
23ddb47520
Use latest skylighting.
2019-06-13 10:20:59 -07:00
John MacFarlane
92ccb88cb7
Don't look for template files remotely for remote input.
...
Previously pandoc would look for the template at a remote
URL when a URL was used for the input file, instead of taking
it from the data-dir.
Closes #5579 .
2019-06-13 09:40:46 -07:00
John MacFarlane
fa50da3030
OpenDocument writer: Avoid duplicate attributes.
...
We use the innermost attribute in nested cases.
Closes #4634 .
2019-06-12 21:51:09 -07:00
Albert Krewinkel
11bb862767
Lua: add a clone()
method to all AST elements ( #5572 )
...
Closes : #5568
2019-06-12 09:58:38 -07:00
John MacFarlane
d81b9f55c1
Add Jira in trypandoc
2019-06-11 22:24:32 -07:00
John MacFarlane
b6d564696f
Update manual date, readme, man page.
2019-06-11 21:50:10 -07:00
John MacFarlane
5042c796de
Update changelog.
2019-06-11 21:45:57 -07:00
John MacFarlane
bec95c97ac
LaTeX writer: Don't highlight code in headings.
...
This causes compilation errors, and I don't know how
to work around them. Closes #5574 .
2019-06-11 20:47:29 -07:00
John MacFarlane
9725522a7f
Revert "JATS template: don't include journal-meta unless 'journal'..."
...
This reverts commit 193b5cceba
.
journal-meta is required. Better to include it even if it
doesn't validate through lack of required fields.
2019-06-11 17:31:52 -07:00
John MacFarlane
193b5cceba
JATS template: don't include journal-meta unless 'journal'...
...
...is set in metadata.
Otherwise we get validation errors.
2019-06-11 17:08:40 -07:00
John MacFarlane
5bbaedac57
JATS writer: ensure validity of pub-date.
...
We try to parse the date and convert to year, month, day,
as expected in pub-date. We also add an iso-8601-date attribute
if possible.
2019-06-11 17:01:36 -07:00
John MacFarlane
f7c0d2fb3f
JATS writer: don't use break element for LineBreak.
...
It's only allowed in a few special contexts, and not in
p elements.
2019-06-11 16:19:12 -07:00
John MacFarlane
bb68c183b3
JATS writer: don't embed string-name in string.
...
That's illegal with this DTD.
2019-06-11 16:16:05 -07:00
Albert Krewinkel
6704b66c33
test/lua/module/pandoc.lua: fix non-determinism in test
2019-06-11 21:17:06 +02:00
Albert Krewinkel
7f9b32e36a
data/pandoc.lua: fix deletion of nonexistent attributes
...
Fixes : #5569
2019-06-11 19:48:00 +02:00
Albert Krewinkel
03b9f3d5f3
Lua pandoc module: better tests for Attr and AttributeList
2019-06-11 19:48:00 +02:00