Age | Commit message (Collapse) | Author | Files | Lines |
|
This allows pandoc to compile with base < 4.5, where Data.Monoid
doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
|
|
|
|
|
|
Closes #720.
|
|
It's recommended that your bibliography slide have this
attribute:
# References {.allowframebreaks}
This causes multiple slides to be created if necessary, depending
on the length of the bibliography.
|
|
`/` works even on Windows in LaTeX. `\` will cause major problems
if unescaped.
|
|
|
|
* In Shared, openURL and fetchItem now return an Either, for
better error handling. (API change.)
* Better error message when fetching a URL fails with
`--self-contained`.
* EPUB writer: If resource not found, skip it, as in Docx writer.
* Closes #916.
|
|
Closes #903. This change will make EPS images properly sized
on conversion to Word.
|
|
|
|
|
|
|
|
We take the word/styles.xml, docProps/app.xml, word/theme/theme1.xml,
and word/fontTable.xml from reference.docx, ignoring everything else.
Perhaps this will help with the corruption problems caused when
different versions of Word resave the reference.docx and
reorganize things.
|
|
Previously we used w:cr.
I don't see a difference between these in my version of Word,
but apparently some do. Closes #873.
|
|
|
|
|
|
Previously it was only rendered if title, author, or date set.
Now any metadata field can be set.
|
|
|
|
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.
|