Skip to content

v2.0.0

Choose a tag to compare

@LebCit LebCit released this 19 Jun 11:53
· 111 commits to main since this release

New Features

  • Added full JSDoc in litenode.d.ts for each and every method
  • Rendering templates is now asynchronous
  • addIdsToHeadings has been integrated into SMP (Simple Markdown Parser)
  • extractMarkdownProperties is now asynchronous and supports an array, a folder or a file as an input
  • Added new methods: groupByMarkdownProperty, paginateMarkdownFiles and generateTOC

Details

A detailed documentation of these new capabilities, is available in the new version of LiteNode's documentation.

  • If you use an IDE that supports autocomplete, you'll see a brief description and example when using LiteNode's methods as well as a link to the method's documentation.
  • Rendering templates has been updated to be asynchronous.
  • IDs for heading tags in Markdown, addIdsToHeadings, has been fully integrated into SMP. Now you can just write {# my-id} and LiteNode will take care of it for you!
  • Properties can now be extracted from a single file, from multiple files in the same directory or from an array of files.
  • groupByMarkdownProperty helps in categorizing or organizing markdown files based on a specific frontmatter field.
  • paginateMarkdownFiles helps in displaying markdown files in a paginated format, useful for creating blogs or documentations.
  • generateTOC helps in creating a TOC for better navigation within documents.

Changes

  • Add JSDoc for all methods
  • Make rendering asynchronous
  • Ingrate addIdsToHeadings into SMP. Ensure Markdown heading tags in code's blocks are not parsed to HTML.
  • Make extractMarkdownProperties async. Input can be array, folder or file.
  • Add groupByMarkdownProperty method.
  • Add paginateMarkdownFiles method.
  • Add generateTOC method.
  • Bump LiteNode to major version and publish.