Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
* Depend on pandoc 1.12.
* Added yaml dependency.
* `Text.Pandoc.XML`: Removed `stripTags`. (API change.)
* `Text.Pandoc.Shared`: Added `metaToJSON`.
This will be used in writers to create a JSON object for use
in the templates from the pandoc metadata.
* Revised readers and writers to use the new Meta type.
* `Text.Pandoc.Options`: Added `Ext_yaml_title_block`.
* Markdown reader: Added support for YAML metadata block.
Note that it must come at the beginning of the document.
* `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`,
`stateAuthors`, `stateDate` with `stateMeta`.
* RST reader: Improved metadata.
Treat initial field list as metadata when standalone specified.
Previously ALL fields "title", "author", "date" in field lists
were treated as metadata, even if not at the beginning.
Use `subtitle` metadata field for subtitle.
* `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string
instead of a compiled template..
* OPML template: Use 'for' loop for authors.
* Org template: '#+TITLE:' is inserted before the title.
Previously the writer did this.
|
|
Currently the library is set up with a shim for association
lists, for compatibility, but this can change when the writers
are changed.
New export: `varListToJSON`.
Removed `Empty`.
Simplified template type to a newtype.
|
|
Benchmarked: about twice as slow as json!
|
|
This is needed for some large conversions, esp. if pandoc
is compiled with 64-bit ghc.
|
|
|
|
Closes #849.
|
|
|
|
Reason: the path to the system temp directory may contain tildes,
which causes problems in LaTeX when the username is more than
eight characters.
Closes #777.
|
|
This has functions to create ascii-only versions of identifiers.
|
|
|
|
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.
|
|
Modify tests/haddock-reader.haddock and
tests/haddock-reader.native.
|
|
|
|
|
|
Reason: < 0.5 does not provide a monoid instance for Attribute,
which is now needed by the HTML writer.
Closes #803.
|
|
Reason: some browsers have trouble with the gzipped js file,
at least on the local file system.
Closes #795.
|
|
|
|
|
|
Minor fixes to OPML writer.
Improved OPML reader tests.
|
|
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.
|
|
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
|
|
|
|
|
|
|
|
Previously, a LaTeX citation would always be parsed as a Citation
element, with the raw LaTeX in the [Inline] part.
Now, the LaTeX citation is parsed as a Citation element only if
`--biblio` was specified (i.e. only if there is a nonempty set
of references in readerReferences). Otherwise it is parsed as
raw LaTeX.
This will make it possible to simplify some things in the markdown
writer. It also makes the LaTeX reader behave more like the Markdown
reader.
|
|
|
|
* 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
|
|
Pandoc will compile with older versions, but there will be bugs
relating to these functions. Making the current versions dependencies
is the only way to get packages updated in the distros.
|
|
|
|
|
|
|
|
|
|
This reverts commit 18a5c9a8bf071398f3976a7c2c255638e135de7c.
We want to do this eventually, but as it requires a major version
bump, let's wait til later.
|
|
This reverts commit 01753ead71f6a08929f1535fcb497ff6d6015289.
We need it after all in pandoc.hs.
|
|
|
|
This is really an auxiliary module.
|
|
|
|
|
|
|
|
I see no reason for the restriction, which requires a recent
Haskell Platform.
The module is only used in make-pandoc-man-pages anyway.
|
|
|
|
This should work on Windows, unlike the TH solution with
file-embed.
|
|
|
|
This module just exports the association list of embedded data files,
which is used by Shared.
|
|
|
|
|
|
Updated changelog.
|
|
|