v2.0.0
New Features
- Added full JSDoc in
litenode.d.tsfor each and every method - Rendering templates is now asynchronous
addIdsToHeadingshas been integrated into SMP (Simple Markdown Parser)extractMarkdownPropertiesis now asynchronous and supports an array, a folder or a file as an input- Added new methods:
groupByMarkdownProperty,paginateMarkdownFilesandgenerateTOC
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.
groupByMarkdownPropertyhelps in categorizing or organizing markdown files based on a specific frontmatter field.paginateMarkdownFileshelps in displaying markdown files in a paginated format, useful for creating blogs or documentations.generateTOChelps 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.