| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
Previously this was done in src/pandoc.hs, which made it difficult
for library users.
* Removed readerCitations in ReaderOptions.
* Added readerReferences and readerCitationStyle to ReaderOptions.
* Moved use of processBiblio from main program to the
markdown and LaTeX readers.
|
|
|
|
|
|
|
|
|
| |
* It is no longer in the IO monad.
* setHash uses state rather than Data.Unique.
* It takes a Style argument rather than parameters for CSL
and abbrev filenames.
* pandoc.hs now calls the functions to parse the style file
and add abbrevs.
|
| |
|
|
|
|
|
|
|
|
| |
* Depend on text.
* Expose Text.Pandoc.UTF8.
* Text.Pandoc.UTF8 now exports toString, fromString,
toStringLazy, fromStringLazy.
* These are used instead of the old utf8-string functions.
|
|
|
|
| |
This reverts commit 7272735b3d413a644fd9ab01eeae8ae9cd5a925b.
|
|
|
|
|
|
|
|
|
|
| |
Previously, UTF-8 was enforced for both input and output.
The new system:
* For input, UTF-8 is tried first; if an error is raised, the
locale encoding is tried.
* For output, the locale encoding is always used.
|
| |
|
|
|
|
| |
This reverts commit c69837adb648a479167be5e2d37279a02be8060c.
|
|
|
|
|
|
|
| |
Note that system templates are stored as UTF8
and will still be read as such, even if the local encoding
is different. Text downloaded from URLs will also be treated
as UTF-8.
|
|
|
|
| |
Removed duplicate code in src/pandoc.hs.
|
|
|
|
|
| |
Text.Pandoc.Readers.MediaWiki module,
tests/mediawiki-reader.{txt,native}.
|
|
|
|
|
|
| |
(This caused problems when used with --self-contained.)
See #609.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* The `--strict` option has been removed.
* Instead of using `--strict`, one can now use `strict` instead of
`markdown` as an input or output format name.
* The `--enable` and `--disable` optinos have been removed.
* It is now possible to enable or disable specific extensions
by appending them (with '+' or '-') to the writer or reader
name. For example `pandoc -f markdown-footnotes+hard_line_breaks`.
* The lhs extensions are now implemented this way, too; you can
use either `+lhs` or `+literate_haskell`.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Removed writerLiterateHaskell from WriterOptions.
- Removed readerLiterateHaskell from ReaderOptions.
- Added Ext_literate_haskell to Extensions. Test for this
instead of the above.
- Removed failUnlessLHS from Shared.
Note: At this point, +lhs and .lhs extension no longer has any effect.
Need to fix.
|
|
|
|
|
|
|
|
| |
* Added Ext_hard_line_breaks.
* Added section in README on non-pandoc extensions.
* Exported pandocExtensions and strictExtensions in Text.Pandoc.Options.
Closes #514.
|
| |
|
|
|
|
|
| |
Still have not implemented individual tests for all the extensions
in the markdown writer.
|
| |
|
| |
|
| |
|
|
|
|
| |
It is indeed needed by the RST reader.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The only possible effect will be with rst fragments that
begin with an rst title block, which will now cause the
header transform.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Better to keep reader and writer options separate.
|
|
|
|
|
|
|
|
|
| |
This is the beginning of a larger transition that will make
Options, not ParserState, the parameter of the read functions.
(Options will also be used in writers, in place of WriterOptions.)
Next step is to remove strict, replacing it with granular
tests for different extensions.
|
| |
|
|
|
|
|
|
|
| |
A Writer can be a PureStringWriter, an IOStringWriter, or
an IOByteStringWriter. ALL writers are now in the 'writers'
list, including the binary writers and fb2 writer. Code simplified
at end of pandoc.hs.
|
| |
|
|
|
|
|
|
|
|
|
| |
These now take WriterOptions and Pandoc only.
The extra parameters for epub stylesheet, epub fonts,
reference Docx, and reference ODT have been removed, since
these things are now in WriterOptions.
Note: breaking API change!
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes #568.
|
|
|
|
|
|
|
|
|
|
|
| |
This means that duplicate variables specified later on the command
line take precedence.
It also allows the default `-slidy-url` to be overridden even when
`--self-contained` is used (provided the `-V` comes after
`--self-contained`. Previously this could not be done. Note
that when `--self-contained` is used, the `slidy-url` variable is
set to `slidy` so that local copies are used.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Prior to base 4.5 (and perhaps earlier - check), filepaths and command
line arguments were treated as unencoded lists of bytes, not unicode
strings, so we had to work around that by encoding and decoding
them. This commit adds CPP checks for base 4.5 that disable the
encoding/decoding.
Fixes a bug with multilingual filenames when pandoc was compiled
with ghc 7.4. Closes #540.
|
| |
|
|
|
|
| |
Depend on h-k 0.5.0.6.
|
|
|
|
|
| |
This is useful for those who want to use advanced OpenType features
with xelatex/lualatex.
|
| |
|
|
|
|
| |
Such keys get the value `true`.
|