Age | Commit message (Collapse) | Author | Files | Lines |
|
if the source name is `source` (i.e., the top level). Otherwise
results will be misleading, since what readM does is to look
up the source position of the error in the *original* input,
which may not match the input used by parseFromString or
in parsing from an included file.
Closes #3865. Not a great fix, maybe there's something better
that could be done, but this should at least avoid misleading
messages.
|
|
Really closes #3979.
|
|
This was needed, for example, to make some minted options work.
|
|
|
|
Closes #3983.
|
|
Currently it's just treated as a synonym for `\newcommand`.
Handles the second case mentioned in #3983.
|
|
|
|
This should help with #3979.
In my test, I got a data uri for data-background. But it didn't
actually work in the browser (the background image didn't show).
Not sure whether this is a problem in reveal.js or a problem
in pandoc...
|
|
Or we'll get data-data-blah.
|
|
Previously `\include` wouldn't work if the included file
contained, e.g., a begin without a matching end.
We've changed the Tok type so that it stores a full SourcePos,
rather than just a line and column. So tokens keeep track
of the file they came from. This allows us to use a simpler
method for includes, which doesn't require parsing the included
document as a whole.
Closes #3971.
|
|
(Use a :literal: role.)
Closes #3974.
|
|
Closes #3978.
|
|
|
|
Now all the guts of openURL have been put into openURL from
Class. openURL is now sensitive to stRequestHeaders in CommonState
and will add these custom headers when making a request.
It no longer looks at the USER_AGENT environment variable,
since you can now set the `User-Agent` header directly.
|
|
|
|
Previously these were not triggering the helpful message
about option name changes.
|
|
markdown writer: always write bracketed_spans' attributes
|
|
This is used internally to indicate internal figures.
See https://groups.google.com/d/msgid/pandoc-discuss/892c5a25-086a-4e19-b4c1-8
975cea8df0f@googlegroups.com?utm_medium=email&utm_source=footer
|
|
|
|
Closes #3968.
|
|
Previously writer produced one paragraph with <empty-line/> elements,
which are not allowed inside <p> according to FB2 schema.
|
|
Fixes #3901 by checking for the evenAndOddHeaders mark in the
reference doc, and copying it to the resulting docx if present.
|
|
|
|
|
|
Previously we were losing the qutation marks in Quoted
elements. See #3958.
|
|
This caused quotes to be omitted in `\texttt` contexts.
Closes #3958.
However, a better fix would be to modify the
|
|
|
|
Footnotes can not only be terminated by the start of a new footnote or a
header, but also by two consecutive blank lines.
|
|
|
|
|
|
|
|
* In Options.HTMLMathMethod, the KaTeX contsructor now takes only
one string (for the KaTeX base URL), rather than two [API change].
* The default URL has been updated to the latest version.
* The autoload script is now loaded by default.
|
|
A table containing the error code, command, and command output is thrown
instead of just a string error message.
|
|
|
|
The pipe command is wrapped in a lua function, throwing a lua error if
the command returns with an error. A wrapper is needed as Haskell
functions exposed to lua may not throw lua errors due to limitations of
hslua.
The error handling is written such that a table can be returned as an
error object in the future. This is potentially useful when finer
control is required while catching the error in lua code. Current
limitations of hslua require error objects to be strings.
|
|
This reduces some boilerplate.
|
|
Closes #3947.
|
|
The `\n` export option turns all newlines in the text into hard
linebreaks.
Closes #3950
|
|
This is hard to do in lua, so it's helpful to provide this.
|
|
|
|
Better to leave control over the extension to the user.
|
|
|
|
Now 'fetch' simply fetches content and mime type.
A new 'hashname' function is provided to get a filename based
on the sha1 hash of the contents and the mime type.
|
|
This is necessary because you may need to insert the filename
into an image or link element.
|
|
to insertResource (`fetch`).
|
|
|
|
|
|
They can be obtained from CommonState since we're
in PandocIO.
|
|
|
|
Removed `writerSourceURL` from `WriterOptions` (API change).
Added `stSourceURL` to `CommonState`.
It is set automatically by `setInputFiles`.
Text.Pandoc.Class now exports `setInputFiles`, `setOutputFile`.
The type of `getInputFiles` has changed; it now returns `[FilePath]`
instead of `Maybe [FilePath]`.
Functions in Class that formerly took the source URL as a parameter
now have one fewer parameter (`fetchItem`, `downloadOrRead`,
`setMediaResource`, `fillMediaBag`).
Removed `WriterOptions` parameter from `makeSelfContained` in
`SelfContained`.
|