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
John MacFarlane
550d949b9e
JATS writer: wrap elements with p when needed.
...
The JATS spec restricts contents of certain
elements (fn, list-item); this patch wraps
elements that can't go in these contexts inside
p elements with specific-use "wrapper", so the
documents will conform.
Closes #5570 .
2019-06-11 10:36:34 -07:00
John MacFarlane
3febd81cbc
LaTeX writer: Use mbox to get proper behavior inside \sout
.
...
Closes #5529 .
2019-06-10 15:02:48 -07:00
John MacFarlane
59529e408b
Asciidoc writer: use doubled ## when necessary for spans.
...
Closes #5566 .
2019-06-10 14:47:04 -07:00
John MacFarlane
2e12106a90
Asciidoc writer: ensure correct nesting strong/emph.
...
Closes #5565 .
2019-06-10 14:42:08 -07:00
John MacFarlane
01bbb52628
DocBook reader: Issue IgnoredElement warnings.
2019-06-09 12:17:23 -07:00
John MacFarlane
96fae8da50
FB2 reader: skip unknown elements rather than throwing errors.
...
Sometimes custom elements are used, and the reader should
not abort but skip them with a warning. (For example,
id element in author.)
Closes #5560 .
2019-06-09 11:51:20 -07:00
John MacFarlane
d577552850
Logging: Added IgnoredElement constructor for LogMessage.
...
SkippedContent doesn't work for some of the XML-based
readers, which don't have access to source positions.
2019-06-09 11:50:42 -07:00
Alexander Krotov
814c3af4df
Muse reader: test that links inside image descriptions work
2019-06-09 14:08:37 +03:00
John MacFarlane
3026266ced
Edit changelog.
2019-06-08 16:08:38 -07:00
John MacFarlane
190c0f6a09
Update changelog provisionally, update AUTHORS.
2019-06-08 14:58:40 -07:00
John MacFarlane
05ae9f265f
Roll back automatic figure/table numbering in ODT/OpenDocument.
...
This was added in pandoc 2.7.2, but it makes it impossible
to use pandoc-crossref. So this has been rolled back for now,
until we find a good solution to make this behavior optional
(or a creative way to let pandoc-crossref and this feature
to coexist).
See #5474 .
2019-06-08 14:17:52 -07:00
John MacFarlane
d1df2b2783
LaTeX reader: pass through unknown listings language as class.
...
Previously if the language was not in the list of listings-
supported languages, it would not be added as a class, so
custom syntax highlighting could not be used.
Closes #5540 .
2019-06-08 12:25:34 -07:00
John MacFarlane
931030d95d
PDF via ms: make TOC appear at beginning and in PDF bookmarks.
...
Previously the TOC appeared at the end of the document,
and was not bookmarked.
If you want it to continue appearing at the end, add
`--pdf-engine-opt=--no-toc-relocation` to your command
line.
Closes #5553 .
2019-06-08 11:53:37 -07:00
John MacFarlane
d8b4e45be0
LaTeX writer: Include inline code attributes with --listings
.
...
Closes #5420 .
2019-06-07 10:03:10 -07:00
Albert Krewinkel
20503894f3
MANUAL.txt, pandoc.cabal: mention Jira as possible target format
2019-06-06 08:09:42 +02:00
Albert Krewinkel
1c36857465
Add jira writer ( #5548 )
...
This adds support for Atlassian's jira markup.
Closes #2497
2019-06-05 17:52:23 -04:00
John MacFarlane
62f8422b8c
Fix typo in lua documentation.
...
Closes #5552 .
2019-06-05 14:48:48 -07:00
John MacFarlane
10615420de
Include trailing {}s in raw latex commands.
...
Change is in rawLaTeXInline in LaTeX reader, but
it affects the markdown reader and other readers
that allow raw LaTeX.
Previously, trailing `{}` would be included for
unknown commands, but not for known commands.
However, they are sometimes used to avoid a trailing
space after the command. The chances that a `{}`
after a LaTeX command is not part of the command
are very small.
Closes #5439 .
2019-06-04 21:20:11 -07:00
John MacFarlane
ad9770fe86
Docx reader: Add support for w:rtl (ltr annotation).
...
Closes #5545 .
2019-06-04 09:49:22 -07:00
John MacFarlane
b5af8eed38
Fix document section assignments in EPUB writer.
...
For example, introduction should go in bodymatter, not frontmatter, and
epigraph, conclusion, and afterward should go in bodymatter, not
backmatter.
For the full list of assignments, see the manual.
Closes #5546 .
2019-06-04 09:20:29 -07:00
John MacFarlane
dddad515e8
Update pandoc-citeproc and skylighting versions.
2019-06-04 09:01:50 -07:00
John MacFarlane
f82d91eb49
Markdown reader: don't create implicit reference for empty header.
...
Closes #5549 .
2019-06-04 08:39:54 -07:00
John MacFarlane
928681ca04
Avoid unwanted interpretation of def list term as other kind of block,
...
e.g. ordered list item, in Markdown writer.
Closes #554 .
2019-06-03 09:51:19 -07:00
Albert Krewinkel
7db3d9ab04
Textile writer: fix closing tag for math output
...
Opening and closing tag for math output match now.
2019-06-01 10:16:00 +02:00
John MacFarlane
39a3a025da
Add unicode code point in "Missing character" warning.
...
If the character isn't in the console font, the
message is pretty useless, so we show the code
point for anything non-ASCII.
Closes #5538 .
2019-05-30 17:31:09 -07:00
Albert Krewinkel
9f43b2ef1a
doc/lua-filters.md: fix typos in pandoc.mediabag docs
2019-05-30 20:03:23 +02:00
John MacFarlane
d687995708
Merge pull request #5312 from tarleb/pandoc-mediabag-extension
...
Pandoc mediabag extension
2019-05-30 10:45:06 -04:00
Albert Krewinkel
f7222370af
Lua modules: test pandoc.mediabag
2019-05-30 08:44:40 +02:00
Albert Krewinkel
5a82ecaaa1
pandoc.mediabag module: add function delete
...
Function `pandoc.mediabag.delete` allows to remove a single item of the given
name from the media bag.
2019-05-29 23:18:44 +02:00
Albert Krewinkel
0a6a11cfab
pandoc.mediabag module: add function empty
...
Function `pandoc.mediabag.empty` was added. It allows to clean-out the media
bag, removing all entries.
2019-05-29 23:18:44 +02:00
Albert Krewinkel
3097ee100e
pandoc.mediabag module: add items function iterating over mediabag
...
A new function `pandoc.mediabag.items` was added to Lua module
pandoc.mediabag. This allows users to lazily iterate over all media bag
items, loading items into Lua one-by-one. Example:
for filename, mime_type, content in pandoc.mediabag.items() do
-- use media bag item.
end
This is a convenient alternative to using `mediabag.list` in combination
with `mediabag.lookup`.
2019-05-29 23:17:12 +02:00
Albert Krewinkel
8507d98a15
doc/lua-filters.md: improve docs for Version type/constructor
2019-05-29 22:59:45 +02:00
Albert Krewinkel
3c3e9a12cd
Lua Version type: shorten "version too old" message
2019-05-29 22:59:45 +02:00
John MacFarlane
e871d65b67
Merge pull request #5526 from tarleb/richer-version-type
...
Lua: add Version type to simplify comparisons
2019-05-29 12:05:04 -04:00
John MacFarlane
1de7b20ebb
Merge pull request #5497 from mb21/html-writer-video-audio
...
Output HTML5 video and audio elements
2019-05-29 12:01:12 -04:00
John MacFarlane
970b820f47
HTML reader: misc. epub related fixes.
...
- With epub extensions, check for epub:type in addition to type.
- Fix problem with noteref parsing which caused block-level
content to be eaten with the noteref.
- Rename pAnyTag to pAny.
- Refactor note resolution.
2019-05-29 08:15:50 -07:00