Pan

Latest version: v0.1.1

Safety actively analyzes 630217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 15

1.9.0.3

* Require Cabal >= 1.10.
* Tweaked cabal file to meet Cabal 1.10 requirements.

1.9.0.2

* Allow build with json 0.4 or 0.5. Otherwise we can't build with
ghc 6.12.

1.9

[new features]

* Added a Microsoft Word `docx` writer. The writer includes support
for highlighted code and for math (which is converted from TeX to OMML,
Office's native math markup language, using texmath's new OMML module).
A new option `--reference-docx` allows the user to customize the
styles.

* Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).

* Better support for slide shows:

+ Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).

+ Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
slide presentations.

+ New, flexible rules for dividing documents into sections and slides
(see the "Structuring the slide show" in the User's Guide). These
are backward-compatible with the old rules, but they allow slide
shows to be organized into sections and subsections containing
multiple slides.

+ A new `--slide-level` option allows users to override defaults
and select a slide level below the first header level with content.

* A new `--self-contained` option produces HTML output that does not
depend on an internet connection or the presence of any external
files. Linked images, CSS, and javascript is downloaded (or fetched
locally) and encoded in `data:` URIs. This is useful for making portable
`HTML slide shows. The --offline` option has been deprecated and is now
`treated as a synonym or --self-contained`.

* Support for PDF output:

+ Removed the old `markdown2pdf`.
+ `pandoc` can now create PDFs (assuming you have latex and a set of
appropriate packages installed): just specify an output file with the
`.pdf` extension.
+ A new option `--latex-engine` allows you to specify `pdflatex`,
`xelatex`, or `lualatex` as the processor.

* Highlighting changes:

+ Syntax highlighting is now a standard feature; the `highlighting`
flag is no longer needed when compiling.
+ A new `--no-highlight` option allows highlighting to be disabled.
+ Highlighting now works in `docx`, `latex`, and `epub`, as well as
`html`, `html5`, `dzslides`, `s5`, and `slidy`.
+ A new `--highlight-style` option selects between various highlighting
color themes.

* Internal links to sections now work in ConTeXt and LaTeX as well as HTML.

* LaTeX `\include` and `\usepackage` commands are now processed,
provided the files are in the working directory.

* EPUB improvements:

+ Internal and external links now work in EPUB.
+ Raw HTML is allowed.
+ New `--epub-embed-font` option.
+ Customizable templates for EPUB pages offer more control over
formatting: `epub-page.html`, `epub-coverimage.html`,
`epub-titlepage.html`.

* `--mathml` now works with DocBook.

* Added support for math in RST reader and writer. Inline math uses the
`` :math:`...` `` construct. Display math uses

.. math:: ...

or if the math is multiline,

.. math::

...

These constructions are now supported now by `rst2latex.py`.

* GitHub syntax for fenced code blocks is supported in pandoc's
markdown. You can now write

ruby
x = 2


instead of

~~~ {.ruby}
x = 2
~~~~

* Easier scripting: a new `toJsonFilter` function makes it easier to
write Haskell scripts to manipulate the Pandoc AST.

[behavior changes]

* Fixed parsing of consecutive lists in markdown.
Pandoc previously behaved like Markdown.pl for consecutive
lists of different styles. Thus, the following would be parsed
as a single ordered list, rather than an ordered list followed
by an unordered list:

1. one
2. two

- one
- two

This change makes pandoc behave more sensibly, parsing this as
two lists. Any change in list type (ordered/unordered) or in
list number style will trigger a new list. Thus, the following
will also be parsed as two lists:

1. one
2. two

a. one
b. two

Since we regard this as a bug in Markdown.pl, and not something
anyone would ever rely on, we do not preserve the old behavior
even when `--strict` is selected.

* Dashes work differently with `--smart`: `---` is always em-dash,
and `--` is always en-dash. Pandoc no longer tries to guess when
`-` should be en-dash. *Note:* This may change how existing documents
look when processed with pandoc. A new option, `--old-dashes`,
is provided for legacy documents.

* The markdown writer now uses setext headers for levels 1-2.
The old behavior (ATX headers for all levels) can be restored
using the new `--atx-headers` option.

* Links are now allowed in markdown image captions. They are also
allowed in links, but will appear there as regular text. So,

[link with [link](/url)](/url)

will turn into

<p><a href="/url">link with link</a></p>

* Improved handling of citations using `citeproc-hs-0.3.4`.
Added `--citation-abbreviations` option.

* Citation keys can no longer end with a punctuation character.
This means that `item1.` will be parsed as a citation with key
'item1', followed by a period, instead of a citation with key
'item1.', as was the case previously.

* In HTML output, citations are now put in a span with class `citation`.

* The markdown reader now recognizes DocBook block and inline tags.
It was always possible to include raw DocBook tags in a markdown
document, but now pandoc will be able to distinguish block from
inline tags and behave accordingly. Thus, for example,

<sidebar>
hello
</sidebar>

will not be wrapped in `<para>` tags.

* The LaTeX parser has been completely rewritten; it is now much more
accurate, robust, and extensible. However, there are two important
changes in how it treats unknown LaTeX. (1) Previously, unknown
environments became BlockQuote elements; now, they are treated
as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
same as `xyz`. (2) Previously, arguments of unknown commands
were passed through with their braces; now the braces are stripped
off.

* `--smart` is no longer selected automatically with `man` output.

* The deprecated `--xetex` option has been removed.

* The `--html5`/`-5` option has been deprecated. Use `-t html5`
instead. `html5` and `html5+lhs` are now separate output formats.

* Single quotes are no longer escaped in HTML output. They do not
need to be escaped outside of attributes.

* Pandoc will no longer transform leading newlines in code
blocks to `<br/>` tags.

* The ODT writer now sizes images appropriately, using the image
size and DPI information embedded in the image.

* `--standalone` is once again implicitly for a non-text output format
(ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
and get a standalone ODT file.

* The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
`<section>`.

* The HTML writer now uses `<del>` for strikeout.

* In HTML output with `--section-divs`, the classes `section` and
`level[1,2,..6]` are put on the `div` tags so they can be styled.
In HTML 5 output with `--section-divs`, the classes
`level[1,2,...6]` are put on `section` tags.

* EPUB writer changes:

+ The `lang` variable now sets the language
in the metadata (if it is not set, we default to the locale).
+ EPUB: UTF-8 is used rather than decimal entities.

* Added `titleslide` class to title slide in S5 template.

* In HTML, EPUB, and docx metadata, the date is normalized into
YYYY-MM-DD format if possible. (This is required for validation.)

* Attributes in highlighted code blocks are now preserved in HTML.
The container element will have the classes, id, and key-value attributes
you specified in the delimited code block. Previously these were stripped
off.

* The reference backlink in the HTML writer no longer has a special
`footnoteBacklink` class.

* The HTML template has been split into `html` and `html5` templates.

* Author and date are treated more consistently in HTML templates.
Authors are now `<h2>`, date `<h3>`.

* URLs are hyphenated in the ConTeXt writer (B. Scott Michel).

* In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.

[bug fixes]

* Better support for combining characters and East Asian wide characters
in markdown and reST.

* Better handling of single quotes with `--smart`.
Previously `D'oh l'*aide*` would be parsed with left and right single
quotes instead of apostrophes. This kind of error is now fixed.

* Highlighting: Use `reads` instead of `read` for better error handling.
Fixes crash on `startNum="abc"`.

* Added blank comment after directives in rst template.

* Unescape entities in citation `refId`. The `refId`s coming
from citeproc contain XML numeric entities, and these don't match with the
citation keys parsed by pandoc. Solution is to unescape them.

* HTML reader: Fixed bug parsing tables with both thead and tbody.

* Markdown reader:

+ Better handling of escapes in link URLs and titles.
+ Fixed backslash escapes in reference links.
+ Fixed bug in table/hrule parsing, by checking that the top
line of a table is not followed by a blank line. This bug caused
slowdowns on some files with hrules and tables, as pandoc tried to
interpret the hrules as the tops of multiline tables.
+ Fixed bug in code block attribute parser. Previously the ID attribute
got lost if it didn't come first. Now attributes can come in any order.

* RST reader: allow footnotes followed by newline without space characters.

* LaTeX reader:

+ Ignore empty groups {}, { }.
+ LaTeX reader: Handle \.
+ LaTeX reader: Don't crash on commands like `\itemsep`.
+ LaTeX reader: Better handling of letter environments.

* RST writer: Fixed bug involving empty table cells. isSimple was being
calculated in a way that assumed there were no non-empty cells.

* ConTeXt writer:

+ Made `--toc` work even without `--number-sections`.
+ Escape in link URLs.
+ Use buffering for footnotes containing code blocks.
+ Changed 'descr' to 'description', fixed alignment.

* LaTeX writer:

+ Escape euro character.
+ Don't escape ~ inside href{...}.
+ Escape in href URLs.
+ Improved detection of book classes. We now check the
`documentclass` variable, and if that is not set, we look through
the template itself. Also, we have added the KOMA classes scrreprt
and scrbook. You can now make a book using
`pandoc -V documentclass:book mybook.txt -o mybook.pdf`
+ LHS files now set the "listings" variable, so that the definition
of the `code` environment will be included in the template.
+ Links are colored blue by default (this can be changed by
modifying `hyperref` settings in the template).
+ Added `lang` variable to LaTeX template.

* HTML writer:

+ Fixed bug in HTML template with html5 and mathml.
+ Don't use self-closing img, br, hr tags for HTML5.
+ Use `<section>` for footnotes if HTML5.
+ Update HTML templates to use Content-Style-Type meta tag.
+ Use separate variables for meta-date, meta-author.
This makes footnotes work in author and date fields.
+ Use 'vertical-align:middle' in WebTeX math for better alignment.

* S5/slidy writer: Make footnotes appear on separate slide at end.

* MIME: Added 'layout-cache' to getMimeType. This ensures that the
META-INF/manifest.xml for ODT files will have everything it needs, so
that ODT files modified by LibreOffice can be used as `--reference-odt`.

* `Text.Pandoc.Templates`: Return empty string for json template.

* `Text.Pandoc.Biblio`:

+ Expand citations recursively inside nested inlines.
+ Treat `\160` as space when parsing locator and suffix.
This fixes a bug with "p. 33" when `--smart` is used. Previously
the whole "p. 33" would be included in the suffix, with no locator.
+ Put whole author-in-text citation in a Cite. Previously just the
date and other info went in the Cite.
+ Don't add comma+space to prefix if it ends in punctuation.

* Updated chicago-author-date.csl. The old version did not work
properly for edited volumes with no author.

* EPUB writer:

+ Add date to EPUB titlepage and metadata.
+ Added TOC identifier in EPUB page template.
+ Don't generate superfluous file `cover-image.jpg`.

[under the hood improvements]

* Modified `make_osx_package.sh` to use cabal-dev.
Items are no longer installed as root.
Man pages are zipped and given proper permissions.

* Modified windows installer generater to use cabal-dev.

* Setup: Making man pages now works with cabal-dev (at least on OSX). In
Setup.hs we now invoke 'runghc' in a way that points it to the correct
package databases, instead of always falling back to the default user
package db.

* Updated to work with GHC 7.4.1.

* Removed dependency on old-time.

* Removed dependency on dlist.

* New slidy directory for "self-contained."

* TeXMath writer: Use unicode thin spaces for thin spaces.

* Markdown citations: don't strip off initial space in locator.

[API changes]

* Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
from the native `Inline` type in pandoc-types. Now we use `Str`
elements with unicode.

* Improvements to `Text.Pandoc.Builder`:

+ `Inlines` and `Blocks` are now newtypes (not synonyms for
sequences).
+ Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
and a new `Listable` class, which allows these to be manipulated
to some extent like lists. Monoid append includes automatic
normalization.
+ `+++` has been replaced by `<>` (mappend).

* Use blaze-html instead of xhtml for HTML generation.
This changes the type of `writeHtml`.

* `Text.Pandoc.Shared`:

+ Added `warn` and `err`.
+ Removed `unescapeURI`, modified `escapeURI`.
(See under [behavior changes], above.)

* Changes in URI escaping: Previously the readers escaped URIs by
converting unicode characters to octets and then percent encoding.
Now unicode characters are left as they are, and `escapeURI` only
percent-encodes space characters. This gives more readable
URIs, and works well with modern user agents. URIs are no longer unescaped
at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.

* New module `Text.Pandoc.SelfContained`.

* New module `Text.Pandoc.Docx`.

* New module `Text.Pandoc.PDF`.

* Added `writerBeamer` to `WriterOptions`.

* Added `normalizeDate` to `Text.Pandoc.Shared`.

* Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
This is like `splitWithIndices`, but it is sensitive to distinctions
between wide, combining, and regular characters.

* `Text.Pandoc.Pretty`:

+ Added `chomp` combinator.
+ Added `beforeNonBreak` combinator. This allows you to include
something conditionally on it being before a nonblank.
Used for RST inline math.
+ Added `charWidth` function. All characters marked W or F in the unicode
spec EastAsianWidth.txt get width 2.
+ Added `realLength`, based on `charWidth`. `realLength` is now
used in calculating offsets.

* New module `Text.Pandoc.Slides`, for common functions for breaking
a document into slides.

* Removed `Text.Pandoc.S5`, which is no longer needed.

* Removed `Text.Pandoc.CharacterReferences`. Moved
`characterReference` to `Text.Pandoc.Parsing`.
`decodeCharacterReferences` is replaced by `fromEntities`
in `Text.Pandoc.XML`.

* Added `Text.Pandoc.ImageSize`. This is intened for use
in `docx` and `odt` writers, so the size and dpi of images
can be calculated.

* Removed `writerAscii` in `WriterOptions`.

* Added `writerHighlight` to `WriterOptions`.

* Added `DZSlides` to `HTMLSlideVariant`.

* `writeEPUB` has a new argument for font files to embed.

* Added `stateLastStrPos` to `ParserState`. This lets us keep track
of whether we're parsing the position immediately after a regular
(non-space, non-symbol) string, which is useful for distinguishing
apostrophes from single quote starts.

* `Text.Pandoc.Parsing`:

+ `escaped` now returns a `Char`.
+ Removed `charsInBalanced'`, added a character parser as
a parameter of `charsInBalanced`. This is needed for
proper handling of escapes, etc.
+ Added `withRaw`.

* Added `toEntities` to `Text.Pandoc.XML`.

* `Text.Pandoc.Readers.LaTeX`:

+ Export `handleIncludes`.
+ Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.

* Added `ToJsonFilter` class and `toJsonFilter` function to
`Text.Pandoc`, deprecating the old `jsonFilter` function.

* `Text.Pandoc.Highlighting`:

+ Removed `highlightHtml`, `defaultHighlightingCss`.
+ Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
key functions from highlighting-kate.
+ Changed types of highlighting function. `highlight` returns a
`Maybe`, not an `Either`.

1.8.2.1

* Relaxed cabal consntraints for test-framework (S. Trofimovich).

* Relaxed cabal constraints for pandoc-types.

* Adjusted Arbitrary instance to help avoid timeouts in tests.

* Added `Tests.Writers.Markdown` to cabal file.

1.8.2

* Added script to produce OS X package.

* Made `templates` directory a git submodule. This should make it
easier for people to revise their custom templates when the default
templates change.

* Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
**Note:** If you have existing templates in `~/.pandoc/templates`, you
must rename them to conform to the new scheme!

* Fixed smart quotes bug, now handling `'...hi'` properly.

* RST reader:

+ Partial support for labeled footnotes.
+ Improved accuracy of `simpleReferenceName` parser.

* HTML reader:

+ Substitute correct unicode characters for
characters in the 128..159 range, which are often found even in
HTML that purports to be UTF-8.

* LaTeX reader: Handle `\subtitle` command (a subtitle is added
to the title, after a colon and linebreak). Closes 280.

* Leaner `reference.odt`.

* Added unexported module `Text.Pandoc.MIME` for use in
the ODT writer.

* ODT writer: Construct `manifest.xml` based on archive contents.
This fixes a bug in ODTs containing images. Recent versions of
LibreOffice would reject these as corrupt, because `manifest.xml`
did not contain a reference to the image files.

* LaTeX writer:

+ Make verbatim environments flush to avoid spurious
blank lines. Closes 277.
+ Use `\texttt` and escapes insntead of `\verb!...!`, which
is too fragile (doesn't work in command arguments).
+ Use `\enquote{}` for quotes if the template includes
the `csquotes` package. This provides better support for
local quoting styles. (Thanks to Andreas Wagner for the idea.)

* ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
margin, preventing spurious blank lines.

* Slidy writer:

+ Use non-minimized version of `slidy.css` with `--offline`
option, so users can more easily edit it.
+ Also fixed a bug in the CSS that prevented proper centering
of title (now reported and fixed upstream).

* S5 writer:

+ Replaced `s5/default/slides.js.{comment,packed}` with
new compressed `s5/default/slides.min.js`.
+ Use `data:` protocol to embed S5 CSS in `<link>` tags,
when `--offline` is specified. Using inline CSS didn't
work with Chrome or Safari. This fixes offline
S5 on those browsers.

* HTML writer: Removed English title on footnote backlinks.
This is incongrous in non-English documents.

* Docbook writer:

+ Use CALS tables. (Some older docbook software does not work
well with XHTML tables.) Closes 77.
+ Use `programlisting` tags (instead of `screen`) for code blocks.

* `markdown2pdf`:

+ Calls latex with `-halt-on-error -interaction nonstopmode` instead
of `-interaction=batchmode`, which essentially just ignored errors,
leading to bad results. Better to know when something is wrong.
+ Fixed issues with non-UTF-8 output of `pdflatex`.
+ Better error reporting.

* `--mathjax` now takes an optional URL argument. If it is not
provided, pandoc links directly to the (secure) mathjax CDN,
as now recommended (thanks to dsanson).

* Deprecated `--xetex` option in `pandoc`. It is no longer needed,
since the LaTeX writer now produces a file that can be processed by
`latex`, `pdflatex`, `lualatex`, or `xelatex`.

* Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
to be used to create the PDF.

* If a template specified with `--template` is not found, look for it
in `datadir`. Also, if no extension is provided, supply one based
on the writer. So now you can put your `special.latex` template in
`~/.pandoc/templates`, and use it from any directory via
`pandoc -t latex --template special`.

* Default template improvements:

+ HTML: Display author and date after title.
+ HTML: Made table of contents more customizable. The container
for the TOC is now in the template, so users can insert a header
or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
+ HTML, Slidy, S5: Enclose scripts in CDATA tags.
+ Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
hard-coding. If you want to put your slidy files in the slidy
subdirectory, for example, you can do
`pandoc -t slidy -V slidy-url=slidy -s`.
+ LaTeX: Use `\and` to separate authors in LaTeX documents (reader
& writer). Closes 279.
+ LaTeX: Use different `hyperref` options for `xetex`, fixing
problems with unicode bookmarks (thanks to CircleCode).
+ LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
with `inputenc`. This covers fewer characters but is more
robust with other packages, and `ucs` is unmaintained. Users
who need better unicode support should use xelatex or lualatex.

1.8.1.2

* Added `--epub-cover-image` option.

* Documented `--biblatex` and `--natbib` options.

* Allow `--section-divs` with slidy output. Resolves Issue 296.

* Disallow notes within notes in reST and markdown.
These previously caused infinite looping and stack overflows.
For example:

[^1]

[^1]: See [^1]

Note references are allowed in reST notes, so this isn't a full
implementation of reST. That can come later. For now we need to
prevent the stack overflows. Partially resolves Issue 297.

* EPUB writer: Allow non-plain math methods.

* Forbid ()s in citation item keys. Resolves Issue 304: problems with
`(item1; item2)` because the final paren was being parsed as part of
the item key.

* Changed URI parser so it doesn't include trailing punctuation.
So, in RST, `http://google.com.` should be parsed as a link followed by a
period. The parser is smart enough to recognize balanced parentheses, as
often occur in wikipedia links: `http://foo.bar/baz_(bam)`.

* Markdown+lhs reader: Require space after inverse bird tracks, so that
HTML tags can be used freely at the left margin of a markdown+lhs document.
Thanks to Conal Elliot for the suggestion.

* Markdown reader:

+ Improved emph/strong parsing; fixes bug found by Perry Wagle.
+ Fixed bug in footnote order (reported by CircleCode).

* RST reader:
+ Fixed bug in in field lists with multi-line items at the
end of the list.
+ Added parentheses to RST `specialChars`, so
`(http://google.com)` will be parsed as a link in parens.
Resolves Issue 291.
+ Allow `|` followed by newline in RST line block.

* LaTeX reader:
+ Support `\dots`.
+ Gobble option & space after linebreak `\\[10pt]`.

* Textile reader:
+ Make it possible to have colons after links. (qerub)
+ Make it possible to have colons after links. (Christoffer Sawicki)

* HTML reader:
+ Skip spaces after `<b>`, `<emph>`, etc.
+ Handle tbody, thead in simple tables. Closes 274.
+ Implicit `Para`s instead of `Plains` in some contexts.

* OpenDocument writer: Use special `First paragraph` style for
first paragraph after most non-paragraph blocks. This allows users to
specify e.g. that only paragraphs after the first paragraph of a block are
to be indented. Thanks to Andrea Rossato for the patch. Closes 20.

* LaTeX writer: use `deVerb` on table and picture captions.
Otherwise LaTeX complains about `\verb` inside command argument.
Thanks to bbanier for reporting the bug.

* Markdown writer: Insert HTML comment btw list and indented code block.
This prevents the code block from being interpreted as part of the list.

* EPUB writer: Add a meta element specify the cover.
Some EPUB e-readers, such as the Nook, require a meta element inside the
OPF metadata block to ensure the cover image is properly displayed.
(Kelsey Hightower)

* HTML writer: Use embed tag for images with non-image extensions.
(e.g. PDFs). Closes 264.

* LaTeX writer: Improved tables.

+ More space between lines, top-align cells.
+ Use ctable package, which allows footnotes and
provides additional options.
+ Made cell alignments work in multiline tables.
+ Closes 271, 272.

* Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
Also do this when copying image files into EPUBs and ODTs.
Closes 263.

* Changed to github issue tracker.

* Added failing emph/strong markdown test case due to Perry Wagle.

* Slidy improvements:
+ Updated to use Slidy2.
+ Fixed bug, unclosed div tag.
+ Added `duration` variable in template.
Setting this activates the timer.
+ Use 'titlepage' instead of 'cover' for title div.

Page 12 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.