Pan

Latest version: v0.1.1

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

Scan your dependencies

Page 9 of 15

1.11

* Added `--number-offset` option. (See README for description.)

* Added `--default-image-extension` option. (See README for description.)

* `--number-sections` behavior change: headers with class `unnumbered`
will not be numbered.

* `--version` now reports the default data directory.

* `Text.Pandoc.Parsing` is no longer exposed. (API change.)

* `Text.Pandoc.Highlighting` is no longer exposed. (API change.)

* `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
a field for `Attr` rather than just `String`. (API change.)

* Added `markdown_github` as input format. This was an accidental
omission in 1.10.

* Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
change.)

* Added `writerNumberOffset` field in `WriterOptions`. (API change.)

* Beamer template:

+ Fixed captions with longtable. Thanks to Joost Kremers.
+ Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).

* LaTeX template:

+ Load microtype after fonts. Microtype needs to know
what fonts are being used. Thanks to dfc for the patch.
+ Set `secnumdepth` to 5 if `--number-sections` specified.
This yields behavior equivalent to the other writers, numbering
level 4 and 5 headers too. Closes 753.

* HTML reader:

+ Handle `<colgroup>` tag.
+ Preserve all header attributes.

* LaTeX reader:

+ Parse `\hrule` as `HorizontalRule`. Closes 746.
+ Parse starred variants of `\section` etc. as headers with
attribute `unnumbered`.
+ Read optional attributes in `lstlisting` and `Verbatim` environments.
We convert these to pandoc standard names, e.g. `numberLines`
for `numbers=left`, `startFrom=100` from `firstnumber=100`.
+ Handle language attribute for lstlistings.
+ Better support for Verbatim and minted environments. Closes 763.

* Markdown reader:

+ `-` in an attribute context = `.unnumbered`. The point of this
is to provide a way to specify unnumbered headers in non-English
documents.
+ Fixed bug parsing key/value attributes. Parsing failed if you
had an unquoted attribute immediately before the final '}'.
+ Make backslash escape work in attributes.
+ Fix title block parsing. Now if `mmd_title_blocks` is specified,
pandoc will parse a MMD title block if it sees one, even if
`pandoc_title_blocks` is enabled.
+ Refactoring: `litChar` now includes entities, so we don't need
to use `fromEntities` e.g. on titles.
+ Allow spaces around borders in pipe tables. Closes 772.
+ Allow all punctuation in angle-bracket autolinks. Previously
things like `----` were disallowed, because the uri parser
treated them as trailing punctuation. Closes 768.
+ Make `implicit_header_references` work properly when
headers are given explicit identifiers.
+ Check for tables before line blocks. Otherwise some pipe
tables get treated as line blocks.
+ Allow `&` in emails (for entities).
+ Properly handle entities in titles and links. A markdown link
`<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
Closes 723.

* Textile reader:

+ Handle attributes on headers.

* LaTeX reader:

+ Add `fig:` as title for images with captions.
This is needed for them to be rendered as figures. Closes 766.
+ Never emit an empty paragraph. See 761.
+ Handle `\caption` for images in figures. Closes 766.
+ Parse `\section*`, etc. as unnumbered sections.

* HTML writer:

+ Support header attributes. The attributes go on
the enclosing `section` or `div` tag if `--section-divs` is specified.
+ Fixed a regression (only now noticed) in html+lhs output.
Previously the bird tracks were being omitted.

* LaTeX writer:

+ Omit lists with no items to avoid LaTeX errors.
+ Support line numbering with `--listings`.
If `numberLines` class is present, we add `numbers=left`;
if `startFrom` is present, we add `firstnumber=`. (763)

* ConTeXt writer:

+ Removed `\placecontent`. This produced a duplicate toc,
in conjunction with `\placelist`.
+ Use `\title`, `\subject` etc. for headers with
`unnumbered` class.

* Textile writer:

+ Support header attributes.

* Markdown writer:

+ Use grid tables when needed, and if enabled. Closes 740.
+ Render citations as pandoc-markdown citations.
Previously citations were rendered as citeproc-formatted citations
by default. Now we render them as pandoc citations, e.g. `[item1]`,
unless the `citations` extension is disabled.
If you still want formatted citations in your markdown output,
use `pandoc -t markdown-citations`.

* RST writer:

+ Support `:number-lines:` in code blocks.

* Docx writer:

+ Better treatment of display math. Display math inside a
paragraph is now put in a separate paragraph, so it will render
properly (centered and without extra blank lines around it).
Partially addresses 742.
+ Content types and document rels xml files are now created from
scratch, rather than being taken over from `reference.docx`.
This fixes problems that arise when you edit the `reference.docx`
with Word.
+ We also now encode mime types for each individual image rather
than using defaults. This should allow us to handle a wider
range of image types (including PDF). Closes 414.
+ Changed style names in `reference docx`.
`FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
The old names got changed by Word when the `reference.docx` was
edited. Closes 414.

* EPUB writer:

+ Fix section numbering. Previously the numbering restarted from 1
in each chapter (with `--number-sections`), though the numbers in
the table of contents were correct.
+ Headers with "unnumbered" attribute are not numbered. (Nor do they
cause an increment in running numbering.) Section numbers now work
properly, even when there is material before the first numbered section.
+ Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
but `linear` is set to `no` unless the `--toc` option is specified.
Include `<guide>` element in OPF. This should allow the TOC to
be useable in Kindles when converted with kindlegen. Closes 773.

* `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
This dramatically reduces the speed penalty that comes from enabling the
`autolink_bare_uris` extension. The penalty is still substantial (in one
test, from 0.33s to 0.44s), but nowhere near what it used to be.
The RST reader is also much faster now, as it autodetects URIs.

* `Text.Pandoc.Shared`: `hierarchicalize` will not number section
with class "unnumbered". Unnumbered sections get `[]` for their
section number.

* `Text.Pandoc.Pretty`:

+ Fixed `chomp` so it works inside `Prefixed` elements.
+ Changed `Show` instance so it is better for debugging.

* `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.

* `Text.Pandoc.UTF8`: Strip off BOM if present. Closes 743.

* Windows installer improvements:

+ The installer is now signed with a certificate (thanks to
Fyodor Sheremetyev).
+ WiX is used instead of InnoSetup. The installer is now a
standard msi file.
+ The version number is now auto-detected, and need not be
updated separately.

* OSX installer improvements:

+ The package and pandoc executable are now signed with a
certificate (thanks to Fyodor Sheremetyev).
+ RTF version of license is used.
+ Use full path for sysctl in `InstallationCheck` script (jonahbull).
Closes 580.

* Converted COPYING to markdown.

* pandoc.cabal: Require latest versions of highlighting-kate,
texmath, citeproc-hs, zip-archive.

1.10.1

* Markdown reader: various optimizations, leading to a
significant performance boost.

* RST reader: Allow anonymous form of inline links:
`` `hello <url>`__ `` Closes 724.

* Mediawiki reader: Don't require newlines after tables.
Thanks to jrunningen for the patch. Closes 733.

* Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
when output is LaTeX, and applied when it is another format.
Partially addresses 730.

* Markdown and RST readers: Added parser to `block` that skips blank
lines. This fixes a subtle regression involving grid tables with
empty cells. Also added test for grid table with empty cells.
Closes 732.

* RST writer: Use `.. code:: language` for code blocks with language.
Closes 721.

* DocBook writer: Fixed output for hard line breaks, adding a newline
between `<literallayout>` tags.

* Markdown writer: Use an autolink when link text matches url.
Previously we also checked for a null title, but this
test fails for links produced by citeproc-hs in bibliographies.
So, if the link has a title, it will be lost on conversion
to an autolink, but that seems okay.

* Markdown writer: Set title, author, date variables as before.
These are no longer used in the default template, since we use
titleblock, but we set them anyway for those who use custom templates.

* LaTeX writer: Avoid extra space at start/end of table cell.
Thanks to Nick Bart for the suggestion of using {}.

* `Text.Pandoc.Parsing`:

+ More efficient version of `anyLine`.
+ Type of `macro` has changed; the parser now returns `Blocks`
instead of `Block`.

* Relaxed old-time version bound, allowing 1.0.*.

* Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
should create a symlink as described in the README.

1.10.0.5

* Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
`\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
Thanks to Daniel Miot for noticing the bug and suggesting the fix.

* Markdown reader: Fixed bug with headerless grid tables.
The 1.10 code assumed that each table header cell contains exactly one
block. That failed for headerless tables (0) and also for tables with
multiple blocks in a header cell. The code is fixed and tests provided.
Thanks to Andrew Lee for pointing out the bug.

* Markdown reader: Fixed regressions in fenced code blocks. Closes 722.

+ Tilde code fences can again take a bare language string
(`~~~ haskell`), not just curly-bracketed attributes
(`~~~ {.haskell}`).
+ Backtick code blocks can take the curly-bracketed attributes.
+ Backtick code blocks don't *require* a language.
+ Consolidated code for the two kinds of fenced code blocks.

* LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.

* Markdown writer: Use proportional font for email autolinks with
obfuscation. Closes 714.

* Corrected name of `blank_before_blockquote` in README. Closes 718.

* `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
The bug prevented an autolink at the end of a string (e.g.
at the end of a line block line) from counting as a link. Closes 711.

* Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
This should work on Windows, unlike the TH solution with
file-embed.

* Eliminated use of TH in test suite.

* Added `Text.Pandoc.Data` (non-exported) to hold the association
list of embedded data files, if the `embed_data_files` flag is selected.
This isolates the code that needs special treatment with file-embed or
`hsb2hs`.

* Changes to `make-windows-installer.bat`.

+ Exit batch file if any of the cabal-dev installs fail.
+ There's no longer any need to reinstall `highlighting-kate`.
+ Don't start with a `cabal update`; leave that to the user.
+ Force reinstall of pandoc.

* Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
Jens Petersen.

1.10.0.4

* Fixed bug with escaped % in LaTeX reader. Closes 710.

1.10.0.3

* Added further missing fb2 tests to cabal file.

1.10.0.2

* Added fb2 tests to cabal file's extra-source-files.

Page 9 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.