Age | Commit message (Collapse) | Author | Files | Lines |
|
This avoids a clash with a deprecated \textlatin command defined
in Babel. Closes #4161.
|
|
fig, table-wrap & caption Divs for JATS writer
|
|
|
|
|
|
The same init file (`data/init`) that is used to setup the Lua
interpreter for Lua filters is also used to setup the interpreter of
custom writers.lua.
|
|
The custom writer used its own `ToLuaStack` instance definitions, which
made it difficult to share code with Lua filters, as this could result
in conflicting instances. A `Stringify` wrapper is introduced to avoid
this problem.
|
|
Support writing <fig> and <table-wrap> elements with <title> and
<caption> inside them by using Divs with class set to on of
fig, table-wrap or cation. The title is included as a Heading
so the constraint on where Heading can occur is also relaxed.
Also leaves out empty alt attributes on links.
|
|
|
|
These were a result of moving functions to the OOXML module.
|
|
This imports the essential Powerpoint writer.
It works following the standard Pandoc conventions for making other
sorts of slides. At the moment, there are still these TODOs:
1. Syntax highlighting is not yet implemented. (This is difficult
because there are no character classes in Powerpoint.)
2. Footnotes and Definition lists are not yet implemented. (Notes will
usually take the form of a final slide.
3. Image placement and auto-resizing has a few glitches.
4. Reference powerpoint files don't work dependably from the command
line. This will be implemented, but at the moment users are advised
to change themes from within Powerpoint.
|
|
This is for functions used by both Powerpoint and Docx writers.
|
|
This fixes a bug in 2.0.4, whereby pandoc could not
read the theme files generated with `--print-highlight-style`.
It also fixes some CSS issues involving line numbers.
Highlighted code blocks are now enclosed in a div with class
sourceCode.
Highlighting CSS no longer sets a generic color for pre
and code; we only set these for class `sourceCode`.
This will close #4133 and #4128.
|
|
That is, just print the link text without the url.
Closes #4136.
|
|
* Deprecate `--strip-empty-paragraphs` option. Instead we now
use an `empty_paragraphs` extension that can be enabled on
the reader or writer. By default, disabled.
* Add `Ext_empty_paragraphs` constructor to `Extension`.
* Revert "Docx reader: don't strip out empty paragraphs."
This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
* Implement `empty_paragraphs` extension in docx reader and writer,
opendocument writer, html reader and writer.
* Add tests for `empty_paragraphs` extension.
|
|
|
|
This allows a pandoc markdown native div or span to be
rendered in gfm using raw html tags.
|
|
This is a helper allowing other writers to create single
HTML tags.
|
|
Note that `raw_html` is enabled by default for `gfm`, while
`raw_tex` is disabled by default.
|
|
See #2252.
This also changes fixDisplayMath from Text.Pandoc.Writers.Shared
so that it no longer produces empty Para as an artifact.
(That was the original reason the writer omitted them.)
|
|
|
|
Previously both needed to be specified (unless the image was
being resized to be smaller than its original size).
If height but not width is specified, we now set width to
textwidth (and similarly if width but not height is specified).
Since we have keepaspectratio, this yields the desired result.
|
|
Closes #4111.
|
|
This reverts commit 171187a4527497701b3c77bd56cea2d770d4e3b0.
|
|
...if only one of height/width is given.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Additional <verbatim> is not needed as <code> is verbatim already.
|
|
It was previously `media/media/imagename`, and should have
been `media/imagename`.
|
|
Closes #4069.
|
|
Closes #4061.
|
|
(src, poster, etc.) This had not been updated for the
new EPUB container layout, with a separate text/ subdirectory.
Closes #4050. Closes #4055.
|
|
The structure of the EPUBs was messed up, and #3720 was
improperly implemented. This commit fixes things.
|
|
|
|
This reverts commit 1a81751cef330d875cc34f11cde4a0d478969db7.
|
|
See #4036.
Close examination by org experts needed, to ensure that
nothing breaks.
|
|
Previously we got a crash, because we were trying to print
a native cmark STRIKETHROUGH node, and the commonmark writer
in cmark-github doesn't support this. Work around this by
using a raw node to add the strikethrough delimiters.
Closes #4038.
|
|
* Move as much as possible to the CSS in the template.
* Ensure that all the HTML-based templates (including epub)
contain the CSS for columns.
* Columns default to 50% width unless they are given a width
attribute.
Closes #4028.
|
|
The line identifiers are built using the code block's identifier
as a prefix. If the code block has null identifier, we use
"cb1", "cb2", etc.
Closes #4031.
|
|
* Remove "width" attribute which is not allowed on div.
* Remove space between `<div class="column">` elements,
since this prevents columns whose widths sum to 100%
(the space takes up space).
Closes #4028.
|
|
|
|
|
|
XML schema requires at least one genre.
|
|
<annotation> is not allowed inside <body> according to FictionBook2 XML schema. Besides that, the same information is already placed inside <description>.
Related bug: #2424
|
|
HTML Writer: consistently use dashed class-names
|
|
FB2 writer: make bullet lists consistent with ordered lists
|
|
Closes #4020.
|