Age | Commit message (Collapse) | Author | Files | Lines |
|
It's just commas with brackets that can cause problems.
|
|
This makes the output predictable; previously it varied across
implementations.
|
|
This should have been in last commit.
|
|
* Text.Pandoc.Writers.Shared contains shared functions used
only in writers.
* metaToJSON now takes a WriterOptions parameter, and will
return an empty object if standalone is not specified.
|
|
|
|
This reverts commit 0ec8573347d53e0cba70552a50dba697f39216b6.
|
|
|
|
|
|
Previously if you set a value both in metadata and with a variable,
they'd be combined into a list. Now the variable replaces the
value in document metadata. If many variables with the same
name are set, a list is created.
Shared: metaToJSON now has an argument for a variable list.
|
|
The old output only worked in MkII. This should work in MkIV
as well.
Closes #837.
|
|
|
|
This way explicitly specified fields not overridden.
Fixes a problem e.g. with specifying a documentclass via
the command line using -V.
|
|
Now the `title`, `section`, `header`, and `footer` can all be set
individually in metadata. The `description` variable has been
removed.
Quotes have been added so that spaces are allowed in the title.
If you have a title that begins
COMMAND(1) footer here | header here
pandoc will parse it as before into a title, section, header, and
footer. But you can also specify these elements explicitly.
Closes #885.
|
|
This caused problems with array environments. Closes #891.
|
|
|
|
|
|
* 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.
|
|
|
|
Previously the labels were only created when there were links to
the section in the document.
Closes #871.
|
|
([[]]) on headers
|
|
For 'import Prelude hiding (catch)'. catch is no longer in
Prelude starting with base 4.6.
|
|
And some code cleanup.
|
|
This allows you to use `--webtex` in creating EPUBs.
|
|
Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
|
|
Closes #839.
|
|
Closes #835.
|
|
This fixes a bug wherein notes were numbered incorrectly
in tables. Closes #827.
Now that we are using longtable, we can just use regular
`\footnote` commands for notes, which simplifies the code
considerably.
|
|
This fixes a regression and closes #830.
$ echo '<a href="x">x</a>' | pandoc -f html -t markdown
<x>
|
|
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.
|
|
This, I hope, will fix test failures on GHC 7.6 due to
(presumably) different rounding or floating point multiplication.
|
|
Also, don't wrap long author entries, as new lines get treated
as new authors.
|
|
This differentiates between tight and loose lists.
Closes #775.
|
|
if other table options are disabled.
This means you can do
pandoc -t markdown-pipe_tables-simple_tables-multiline_tables
and all tables will render as grid tables.
|
|
Reason: < 0.5 does not provide a monoid instance for Attribute,
which is now needed by the HTML writer.
Closes #803.
|
|
Set linear="no" if no title block.
Addresses #797.
|
|
Closes #799.
|
|
This gives
. . .
a pause.
|
|
Changed name to revealjs (from reveal_js).
Set revealjs-url template variable to 'reveal.js' by default.
|
|
Variant of a patch from jamiefolson.
Results for more than one level of nesting may be odd.
Perhaps this needs revising.
|
|
All slide formats supported.
Simplified some list code.
|
|
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.
|
|
|
|
Minor fixes to OPML writer.
Improved OPML reader tests.
|
|
TODO:
* Document in README
* Add tests
* Add template (and add template to cabal file)
|
|
In 1.11 and 1.11.1, display math in lists rendered as a new list
item. Now it always appears centered, just as outside of lists,
and in proper display math style, no matter how far indented the
containing list item is.
Closes #784.
|
|
* Reverts 1.11 change that caused citations to be rendered as
markdown citations, even if `--biblio` was specified, unless
`citation` extension is disabled. Now, formatted citations
are always printed if `--biblio` was specified. If you want to
reformat markdown keeping pandoc markdown citations intact,
just don't specify `--biblio`.
* Reverted now unnecessary changes to Text.Pandoc.Biblio adding the raw
block to mark the bibliography, and to Text.Pandoc.Writers.Markdown
to remove the bibliography if `citations` not specified.
* If the content of a `Cite` inline is a `RawInline "latex"`, which
means that a LaTeX citation command was parsed and `--biblio` wasn't
specified, then render it as a pandoc markdown citation. This means
that `pandoc -f latex -t markdown`, without `--biblio`, will convert
LaTeX citation commands to pandoc markdown citations.
|
|
In 1.11, citations would be rendered as pandoc markdown citations,
but the bibliography would still be printed.
We avoid that by adding a `RawBlock "pandoc" "references"` before
the references. This allows the markdown writer to find the references
and strip them off when `citations` is enabled.
|
|
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
|
|
Also made `--number-offset` affect TOC numbering as well
as section numbering, as it should have all along.
Closes #789.
|