Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
This reverts commit 2e5edbb27837372f658b1abbe05371be57415847.
|
|
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
|
|
* `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.
|
|
Reason: EPUB users who don't want a visible TOC may still want
to set the TOC level for in the book navigation.
|
|
Closes #720.
|
|
pandoc -t data/sample.lua
will load the script sample.lua and use it as a custom writer.
data/sample.lua is provided as an example.
Added `--print-custom-lua-writer` option to print the sample
script.
|
|
|
|
Changed name to revealjs (from reveal_js).
Set revealjs-url template variable to 'reveal.js' by default.
|
|
Support unordered and ordered lists with "fragment" elements.
Modified by JGM to remove the --reveal_js-url command-line option.
Instead use -V reveal_js-url=... as with slidy and the other slide
formats. Also cleaned up the list code in the HTML writer.
|
|
TODO:
* Document in README
* Add tests
* Add template (and add template to cabal file)
|
|
The _note attribute is supported. This is unofficial, but
used e.g. in OmniOutliner and supported by multimarkdown.
We treat the contents as markdown blocks under a section
header.
Added to documentation and tests.
|
|
Also made `--number-offset` affect TOC numbering as well
as section numbering, as it should have all along.
Closes #789.
|
|
* Moved code for translating listings language names to
highlighting-kate names and back from LaTeX reader to Highlighting.
* Text.Pandoc.Highlighting no longer exposed (API change)
* Text.Pandoc.Highlighting exports toListingsLang, fromListingsLang
|
|
Also `writerNumberFrom` -> `writeNumberOffset`.
The offset is a list of numbers (0 by default).
These are added to the section, subsection, etc.
numbers that would have been generated automatically.
|
|
|
|
These still aren't hooked up to anything in the writers.
|
|
Print default user data directory.
Put language names in lowercase and omit 'alert' and 'alert_indent'.
|
|
Print default user data directory.
Put language names in lowercase and omit 'alert' and 'alert_indent'.
|
|
Note: Currently this only affects the markdown reader.
|
|
|
|
* RTF writer: Export writeRTFWithEmbeddedImages instead of
rtfEmbedImage.
* Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF.
* Moved code for embedding images in RTF out of pandoc.hs.
|
|
The previous default was to use `<q>` tags in HTML5.
But `<q>` tags are also valid HTML4, and they are not very
robust in HTML5. Some user agents don't support them,
and some CSS resets prevent pandoc's quotes CSS from working
properly (e.g. bootstrap). It seems a better default just
to insert quote characters, but the option is provided for
those who have gotten used to using `<q>` tags.
|
|
It should be the URL up to the path.
|
|
And added markdown_phpextra input/output format.
|
|
|
|
Also writerEpubTOCLevel -> writerTOCLevel.
So far this is only implemented in the EPUB writer.
|
|
|
|
API change for consistency.
|
|
Also added writerEpubChapterLevel and writerEpubTOCLevel fields
to WriterOptions.
|
|
Users who want pure readers can still get them; this just affects
the function getReader that looks up a reader based on the format
name.
The point of this change is to make it possible to print warnings
from the parser.
|
|
|
|
* Added `embed_data_files` flag. (not yet used)
* Shared no longer exports `findDataFile`.
* `readDataFile` now returns a strict bytestring.
* Shared now exports `readDataFileUTF8` which returns a string like
the old `readDataFile`.
* Rewrote modules to use new data file functions and to avoid
using functions from Paths_pandoc directly.
|
|
* Remove executable and library flags.
* Expose `Text.Pandoc.XML` and `Text.Pandoc.Biblio`.
* Depend on pandoc library in executable, so we don't recompile
everything.
* Move pandoc.hs from src/ to .
|