Skip to content

Latest commit

 

History

History
98 lines (73 loc) · 3.57 KB

CHANGELOG.md

File metadata and controls

98 lines (73 loc) · 3.57 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • app#parse function which is used to parse front matter.
  • Array of paths can be passed as argument to app#generate.
  • Support for GFM Alerts via marked-alert extension.

Fixed

  • app#generate invokes callback after all pages have been generated.

Changed

  • Apps added to the main app via app#use are automatically mapped when app#generate is called.
  • Routes added to the main app via app#page are automatically mapped when app#generate is called.
  • app#fm is now used only to register front matter parsing functions, and takes a delim argument. Front matter parsing has been removed in favor of app#parse.
  • Upgraded to marked@13.x. marked-highlight and marked-gfm-heading-id extensions are both used to maintain same behavior as previous marked@0.3.x.

0.4.0 - 2024-03-18

Added

  • Added page#convert() for writing a page after converting from lightweight markup.

Changed

  • page#compile takes required layout as first argument, rather than third.
  • page#compile now invokes callback after rendering. If content is needed without being inserted into a layout, call page#convert.

Removed

  • Removed options argument to app#markup(). If default options are needed, they can be bound via closure instead.

Fixed

  • Options passed to page#compile are passed to app#convert.
  • Options passed to page#compile are passed to page#render.

0.3.0 - 2024-03-11

Changed

  • Auto-require()'ing of engines expect the module to export a .__express function, rather than .renderFile, for compatibility with existing engines and Express conventions.
  • Renamed app#convert() to app#markup().
  • app#convert is now a synchronous function, returning a string rather than yielding an error and string to a callback function.

Removed

  • Removed ability to pass module object containing renderFile and render functions as argument to app#engine(). Plugins that render lightweight markup should now be registered via app#markup().
  • Removed "identity" engine used to render static, non-templated HTML files.
  • Removed support for JSON as a front matter format. If support is needed, it can be added by applications using app#fm().

0.2.0 - 2023-12-12

0.1.3 - 2018-09-23

0.1.2 - 2018-09-21

Changed

  • Added manifest() to middleware used implicitly by application.

0.1.1 - 2018-09-17

0.1.0 - 2017-10-10

0.0.3 - 2013-05-01

0.0.2 - 2013-02-26

0.0.1 - 2012-11-10

  • Initial release.