| Age | Commit message (Collapse) | Author |
|
Not technically an API change, since these are still unreleased.
Remove the `ExtensionsConf` in the return value, and added an 'ExtensionsDiff'
parameter.
|
|
|
|
T.P.Extensions [API change]:
+ Add CustomExtension constructor to Extension.
+ Remove Bounded, Enum instances for Extension.
+ Add `extensionsToList` function.
+ Revise `readExtension` so it can handle CustomExtension, and so
that it returns a Text rather than Maybe Text.
+ Add `showExtension`.
T.P.Format:
+ Revise error checking to handle CustomExtension.
|
|
Allows to handle docx and epub files.
|
|
`SOURCE_DATE_EPOCH` environment variable if set. (`getTimestamp` was
already sensitive.) This ensures that EPUB builds are reproducible.
Closes #7093.
|
|
|
|
|
|
|
|
This was only used in one place, and can be replaced with simpler
code.
|
|
|
|
|
|
This is just `nubOrd` from Data.Containers.ListUtils.
|
|
This is just a synonym for Bifunctor.first.
|
|
|
|
|
|
We neglected to change the import after adding T.P.Version.
|
|
|
|
This new module exports `pandocVersion` and `pandocVersionText`,
which are no longer exported from Text.Pandoc.Shared. [API change]
Also, we now set the `pandoc-version` variable centrally rather
than in the writers. One effect is the man writer now emits
a comment with the pandoc version (this was intended before,
judging from the template, but it didn't happen because the
vairable wasn't set).
|
|
These are now exported by Text.Pandoc.URI, and removing
them from Shared helps make module structure more straightforward.
|
|
|
|
strict and lazy ByteString. [API change]
|
|
|
|
This reverts commit e5fbddd3b6c0c7a3b76b313edbe55242e3b138fc.
|
|
This reverts commit 20492d523c8324e36781cfbbc8092c796f94b151.
|
|
This reverts commit eff82cfe4de44a111250ce9ce3ecee2fd4d99924.
|
|
We previously avoided generating a duplicate with another automatically
generated identifier; now we also avoid duplicates with explicit
identifiers that occur before the header for which an identifier
is being generated. (Collisions are still possible for identifiers
that occur after the header.)
T.P.Shared: `makeSections` is also modified so it doesn't give
bad results when the enclosing Div has a different identifier
from the header, as may now happen.
|
|
[API change]
Use this in the HTML reader to register identifiers to avoid
duplicates created by `auto_identifiers`.
|
|
with `auto_identifiers`.
Closes #8383.
|
|
This reverts commit 1e7b57e1e888575ec772fa30381a9edc9577a406.
|
|
Henceforth we just use `PandocParseError`.
T.P.Parsing now exports `fromParsecError`, which can be used
to turn a parsec ParseError into a regular PandocParseError
(the appearance to the user should be unchanged in every case).
[API change]
Closes #8382.
|
|
|
|
|
|
highlighting CSS and citations CSS in the source.
|
|
|
|
Closes #8383.
Previously when converting HTML with headings nested under
section elements, pandoc would produce HTML div tags and
a span with an identifier duplicating the one on the div.
It seems better just to omit the superstructure of section
divs, so that's what this commit does, yielding more
normal MediaWiki output.
|
|
|
|
With this change, we reduce the amount of inline CSS used
for EPUBs. Almost everything is now in the default EPUB
CSS (`data/epub.css`), which can be overridden either by
putting `epub.css` in the user data directory or by using
`--css` on the command line. Inline styles are only used
for syntax highlighting (which depends on the style specified,
and is only included on pages with highlighted code) and
for bibliography formatting (which can depend on the CSL
style, and is only used in the page containing the bibliography).
Note that, for compatibility with older readers, we don't
use flexbox to style `column/columns` divs by default, as
we do in HTML. Instead, we use an older method which only
works when there are two `column` divs inside a `columns`
div. If you need more than two columns and aren't worried
about support for older EPUB readers, you can modify the
default CSS (there is a comment in the CSS telling you what to do).
Closes #8379.
|
|
|
|
|
|
[API change]
|
|
We were exporting Parser, ParserT as synonyms of Parsec, ParsecT.
There is no good reason for this and it can cause confusion.
Also, when possible, we replace imports of Text.Parsec with
T.P.Parsing. The idea is to make it easier, at some point,
to switch to megaparsec or another parsing engine if we want to.
T.P.Parsing new exports: Stream(..), updatePosString, SourceName,
Parsec, ParsecT [API change].
Removed exports: Parser, ParserT [API change].
|
|
|
|
Also a small performance optimization.
Closes #8380.
|
|
|
|
|
|
Otherwise the `Error running Lua` message can be prepended multiple
times.
|
|
This allows:
alias pandoc=`make binpath`
for convenient local testing of a build.
|
|
|
|
Rename quick-cabal -> all, quick-test -> test.
Add binpath target.
|
|
String error messages were incorrectly popped of the stack when
retrieving a PandocError.
|