Skip to content

Latest commit

 

History

History
146 lines (80 loc) · 6.27 KB

CHANGELOG.md

File metadata and controls

146 lines (80 loc) · 6.27 KB

Percollate Changelog

Please see the Releases tab on GitHub for the changelog.


Here are the release notes for older versions, kept here for historical purposes.

0.6.4

  • Use the value of the --output option as a prefix for file names when converting multiple files with the --individual flag.
  • Switched fetch implementation from got to the smaller node-fetch package.

0.6.2

Fix -V / --version argument parsing.

0.6.1

Fix template resolution issue introduced in 0.6.0.

0.6.0

  • Upgraded to latest version, and devendorized, @mozilla/readability;
  • Enhancement: remove loading=lazy attributes;
  • Bugfix: identify AMP version when the rel attribute has multiple, space-separated values.
  • Bugfix: add underlines to links in Apple Books

0.5.0

You can now generate (basic) EPUB and HTML with the epub and html commands, respectively.

Added the ability to read HTML content from stdin with the - operand; you can pass the original URL with the -u / --url option.

0.4.0

Enhancement: expand <details> elements.

Chore: upgrade dependencies to their latest version.

0.3.0

Prefer the AMP version of an article, if available. Details here.

Support for lazy-loaded images. (#71)

Increased Puppeteer navigation timeout to 2 minutes. (#80, thanks @butu5!). Also added a --debug flag to print more information about the process.

Fixed URL encoding before fetching it. (#83, thanks @ncsing!)

Generate a Table of Contents page (#81, thanks @guybedo!) when using the --toc option.

0.2.14

Fixes bug with the URL class not being globally available in Node < 10. (#64, thanks @tanmayrajani!).

Adds usage examples to the CLI help output. (#55, thanks @opw0011!)

0.2.13

Adds percollate/${version} user-agent to prevent some HTTP 405 errors (#59).

We now perform relative to absolute URI conversion inside Percollate itself rather than rely on Readability (#33, thank you @ramadis, @tanmayrajani for the help!). This includes the srcset attribute, which caused images to be broken on some sites (#58).

Made imagesAtFullSize ignore Wikipedia image file links (#42).

Percollate now emulates a high-resolution display, which in some cases helps get the best quality image available.

Adds new enhancement, singleImgToFigure, that transforms single images into <figure> elements, using the image's alt attribute as <figcaption>.

Preserve anchor class on hyperlinks, hide them when they're part of a heading. (A common pattern for Markdown to HTML tools).

Align ol and ul elements to match paragraph indentation.

0.2.12

  • Fixes indentation of images wrapped in <p> tags (#48)
  • Adds basic styles for tables (#50), figures, defition terms, et cetera.
  • Adds a better font stack, using CSS variables
  • Better CLI feedback with ora (thanks @emersonlaurentino!)

0.2.11

  • Bump required Node version to 8.6.0 (#45)
  • Show help when no arguments provided or command chosen (#36, thanks @tanmayrajani!)
  • Don't append the HREF for in-page anchors or anchors which have the full URL as their text content (#31)

0.2.10

  • Started separating the CLI from the Node library, working towards a programmatic API (Thank you, @phenax!)
  • Adds --individual flag to export many pages as individual PDFs (#38)

0.2.9

  • Adds a default output file path when the --output option is omitted (#37)

0.2.8

  • Added support for inline CSS styles via the --css option (#27)

0.2.7

  • Added the ability to run percollate with the --no-sandbox Puppeteer flag

0.2.5

  • More print styles to handle blockquotes and aria-hidden elements; re: #19

0.2.2

  • Adds article header, including byline, where it exists, and the source URL (#18)

0.2.1

  • Some Wikipedia-specific enhancements: remove edit links next to headings.
  • Added more print styles to the default stylesheet.
  • Fixes relative links (#12)

0.2.0

  • Deprecates short names for some options (#16)

0.1.9

  • Fixes template path resolution (#17) when percollate is installed globally

0.1.8

  • Adds support for a custom page header/footer via the HTML template and CSS stylesheet

0.1.6

  • Uses Puppeteer's preferCSSPageSize to make the page size and margins configurable from the CSS

0.1.5

  • Only replace single image SRCs with their parent's HREF if the latter matches an image file

0.1.3

  • Introduces separate commands. For now, the pdf command is implemented.
  • Adds the ability to specify a custom HTML template / custom stylesheet.

0.1.2

  • Run percollate as a CLI tool that takes one or more URLs and bundles them into a single PDF file.