Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Previously we used to store the directory of the first input file,
even if it was local, and used this as a base directory for
finding images in ODT, EPUB, Docx, and PDF.
This has been confusing to many users. It seems better to look for
images relative to the current working directory, even if the first
file argument is in another directory.
writerSourceURL is set to 'Just url' when the first command-line
argument is an absolute URL. (So, relative links will be resolved
in relation to the first page.) Otherwise, 'Nothing'.
The ODT, EPUB, Docx, and PDF writers have been modified accordingly.
Note that this change may break some existing workflows. If you
have been assuming that relative links will be interpreted relative
to the directory of the first file argument, you'll need to
make that the current directory before running pandoc.
Closes #942.
|
|
This verifies that walk and query match the generic traversals.
|
|
They are significantly faster.
|
|
|
|
|
|
|
|
Currently these are "transparent" containers, except in HTML,
where they produce div and span elements with attributes.
|
|
This way filters can figure out what the target format is
and react appropriately.
Example:
#!/usr/bin/env runghc
import Text.Pandoc.JSON
import Data.Char
main = toJSONFilter cap
where cap (Just "html") (Str xs) = Str $ map toUpper xs
cap _ x = x
This capitalizes text only for html output.
|
|
|
|
A souped up version of readProcessWithErrorCode that uses lazy bytestrings
and allows setting environment.
|
|
|
|
This reverts commit 2e5edbb27837372f658b1abbe05371be57415847.
|
|
This reverts commit bb61624bb2bba416e1992ecdf101f9660a3edcae.
Apparently someone put this there for a reason, since it's in
the test suite.
|
|
This allows pandoc to compile with tagsoup 0.13.x.
Thanks to Dirk Ullrich for the patch.
|
|
This allows pandoc to compile with base < 4.5, where Data.Monoid
doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
|
|
This isn't part of Textile.
|
|
|
|
|
|
|
|
|
|
So, author names or titles that aren't capitalized will stay
uncapitalized.
|
|
Closes #935.
|
|
|
|
|
|
Closes #933.
|
|
Closes #720.
|
|
It's better just to import this from Text.Pandoc.JSON.
That way, compiled filters will be smaller in size.
|
|
There is no point to supporting them, since pandoc-types
requires at least ghc 7.2 for GHC generics.
|
|
* These use GHC generics rather than syb, and are faster.
* toJsonFilter is now a deprecated synonym of toJSONFilter from
Text.Pandoc.JSON.
* The deprecated jsonFilter function has been removed.
|
|
Closes #898: notes not generated from citations were being
adjusted (first letter capitalized, for example, against author's
intentions).
|
|
The new version correctly sees a sentence ending in '.)' as ending
with punctuation. This fixes a bug which led such sentences to receive
an extra period at the end: '.).'. Thanks to Steve Petersen for
reporting.
|
|
|
|
|
|
|
|
It's recommended that your bibliography slide have this
attribute:
# References {.allowframebreaks}
This causes multiple slides to be created if necessary, depending
on the length of the bibliography.
|
|
`/` works even on Windows in LaTeX. `\` will cause major problems
if unescaped.
|
|
Closes #926.
|
|
* Closed #927 (a bug in which `<pre>` in certain contexts was
not recognized as a code block).
* Remove internal HTML tags in code blocks, rather than printing
them verbatim.
* Parse attributes on `<pre>` tag for code blocks.
|
|
This reverts commit 85dacbb282f34dc45a810d7c7b5a2d639b70e1f5.
|
|
This makes it easier to use JSON filters. Instead of
doing
pandoc -t json | ./filter | pandoc -f json
you can just do
pandoc --filter ./filter
|
|
Closes #817.
|
|
|
|
0.5.4 has a serious memory leak that affects the mandoc parser.
See highlighting-kate#34.
|
|
* A suffix beginning with a digit gets 'p' inserted before it
before passing to citeproc-hs, so that bare numbers are treated
as page numbers by default.
* A suffix not beginning with punctuation has a space added at
the beginning (rather than a comma and space, as was done before).
* This adding occurs not just in author-in-text citations, but in
all citations.
The result of these changes (and the last commit) is that
`\citep[23]{item1}` in LaTeX will be interpreted properly,
with '23' treated as a locator of type 'page'.
|
|
This is added when needed in Text.Pandoc.Biblio anyway.
|
|
Using technique from github.com/jgm/Markdown.
The new parsing algorithm requires no backtracking, and no keeping
track of nesting levels.
It will give different results in some edge cases but should not
affect most people.
|
|
* `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
(API change.)
* `makePDF` walks the pandoc AST and checks for the existence of
images in the local directory. If they are not found, it attempts
to find them, either in the directory containing the first source
file, or at an absolute URL, or at a URL relative to the base URL
of the first command line argument.
* Closes #917.
|
|
Modified from a patch by achalddave.
|
|
Closes #920.
|