UNPKG

@microflash/fenceparser

Version:

A metadata parser for code fences in markdown

52 lines (30 loc) 1.75 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [5.0.0] - 2026-06-08 ### Added - Support for arbitrary characters in keys for key-value pairs ## [4.0.0] - 2025-10-12 ### Added - Support unquoted values in key-value pairs ### Changed - **Breaking** Switch from `FenceParser` and `FenceLexer` class-based API to `lex` and `parse` function-based API. To migrate, remove imports of `FenceParser` and its instances with `parse` function call. - **Breaking** Switch from `highlight` to `*` as default range key. To restore the previous behavior, pass `{ rangeKey: 'highlight' }` option to the `parse` function ## [3.1.1] - 2025-04-04 No public changes, just switching from `vitest` to Node.js test runner ## [3.1.0] - 2024-09-28 No public changes, just switching from `ava` to `vitest` ## [3.0.0] - 2024-04-17 ### Changed - **Breaking** Use only double-dots `..` for specifying a range. To migrate, convert all your ranges separated by hyphen to ranges separated by double-dots (for example, convert `12-15` to `12..15`) ## [2.6.2] - 2024-04-16 ### Added - Support for arbitrary ranges - Examples for usage [4.5.0]: https://codeberg.org/naiyer/fenceparser/compare/v4.0.0...v4.5.0 [4.0.0]: https://codeberg.org/naiyer/fenceparser/compare/v3.1.1...v4.0.0 [3.1.1]: https://codeberg.org/naiyer/fenceparser/compare/v3.1.0...v3.1.1 [3.1.0]: https://codeberg.org/naiyer/fenceparser/compare/v3.0.0...v3.1.0 [3.0.0]: https://codeberg.org/naiyer/fenceparser/compare/v2.6.2...v3.0.0 [2.6.2]: https://codeberg.org/naiyer/fenceparser/tree/v2.6.2