| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The App module provides a function that does a pandoc conversion,
based on option settings. The program (pandoc.hs) now does nothing
more than parse options and pass them to this function, which can
easily be used by other applications (e.g. a GUI wrapper).
The Opt structure has been further simplified.
API changes:
* New exposed module Text.Pandoc.App
* Text.Pandoc.Highlighting has been exposed.
* highlightingStyles has been moved to Text.Pandoc.Highlighting.
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Removed writerDocbookVersion in WriterOptions.
Renamed default.docbook template to default.docbook4.
Allow docbook4 as an output format.
But alias docbook = docbook4.
|
| |
| |
| |
| | |
Also include explicit epub2 output format in CLI tool.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Text.Pandoc.Writers.HTML: removed writeHtml, writeHtmlString,
added writeHtml4, writeHtml4String, writeHtml5, writeHtml5String.
* Removed writerHtml5 from WriterOptions.
* Renamed default.html template to default.html4.
* "html" now aliases to "html5"; to get the old HTML4 behavior,
you must now specify "-t html4".
|
| |
| |
| |
| | |
This reverts commit f02a12aff638fa2339192231b8f601bffdfe3e14.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The type is implemented in terms of an underlying bitset
which should be more efficient.
API change: from Text.Pandoc.Extensions export Extensions,
emptyExtensions, extensionsFromList, enableExtension, disableExtension,
extensionEnabled.
|
| |
| |
| |
| |
| |
| | |
API change.
However, Extensions exports Options, so this shouldn't have
much impact.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Remove exported module `Text.Pandoc.Readers.TeXMath`
* Add exported module `Text.Pandoc.Writers.Math`
* The function `texMathToInlines` now lives in `Text.Pandoc.Writers.Math`
* Export helper function `convertMath` from `Text.Pandoc.Writers.Math`
* Use these functions in all writers that do math conversion.
This ensures that warnings will always be issued for failed
math conversions.
|
| |
| |
| |
| |
| | |
We don't have a good way to set things that aren't in the common
state. That will be the next order of business.
|
| | |
|
| | |
|
| |
| |
| |
| | |
This can be instantiated by both an IO monad or a pure State monad.
|
| |
| |
| |
| |
| | |
These work with a State monad and a Reader monad to produce
deterministic results. It can probably be simplified somewhat.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Introduce a new module, Text.Pandoc.Free, with pure versions, based on
the free monad, of numerous IO functions used in writers and
readers. These functions are in a pure
Monad (PandocAction). PandocAction takes as a parameter the type of
IORefs in it. It can be aliased in individual writers and readers to
avoid this parameter.
Note that this means that at the moment a reader can only use one type
of IORef. If possible, it would be nice to remove this limitation.
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
Closes #3363.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
So far this just reproduces capacity.
Later we'll be able to add features like warning
messages, dynamic loading of xml syntax definitions,
and dynamic loading of themes.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
+ Removed Text.Pandoc.Readers.Docx.Fonts
+ Moved its code to texmath; we now use (from texmath 0.9)
Text.TeXMath.Unicode.Fonts
+ Use texmath 0.9 (currently from git).
+ Updated epub tests because texmath now handles more mathml.
|
| |
|
|
|
|
| |
See #3169.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Only works on posix. On Windows, pandoc works as before and
requires an output file parameter for binary formats.
Closes #2677.
|
|\
| |
| | |
Use the markdown version of COPYING from GNU
|
| |
| |
| |
| | |
From https://www.gnu.org/licenses/old-licenses/gpl-2.0.md
|
| | |
|
| |
| |
| |
| | |
Use exported Arbitrary instances from pandoc-types instead.
|
| |
| |
| |
| |
| | |
Previously we required 0.5.
Remove CPP conditionals for earlier versions.
|
|/ |
|
| |
|