# Changelog

## [4.2.1] - 2020-04-25

- 🛠️ Fixed: fatal error in `js-yaml` dependency loading

## [4.2.0] - 2020-04-25

- ✨ Added: autoloader for Prism
- 🛠️ Fixed: vulnerable dependencies

## [4.1.5] - 2019-10-29

- 🛠️ Fixed bug: files were loaded only if they were at the top level of the data source

## [4.1.4] - 2019-10-16

- 🛠️ Fixed bug: thematic break in MD caused front matter parsing to fail

## [4.1.3] - 2019-10-16

- 🛠️ Fixed bug: Fragments with UTF-8 characters were not working

## [4.1.2] - 2019-10-16

- 🛠️ Fixed bug: Fragment navigation was not working with no fragment
- 🔺 Handle RegEx errors

## [4.1.1] - 2019-10-15

- 🛠️ Fixed bug: Fragment navigation was not working

## [4.1.0] - 2019-10-15

- ✨ Markdown files can now be loaded in front matter
- ✨ Enable recursive file loading in YAML data files and front matters
- ✨ Data files can be loaded from any folder not just `data`
- ✨ New HTTP errors for invalid content (500) and invalid file types (300)
- 🛠️ Fixed bug: thematic break in MD caused front matter parsing to fail
- 🛠️ Fixed bug: not having a `main` tag removed all content from body
- 🔺 Prism is loaded only if there is a code block on the site
- 🔺 Dependency update

## [4.0.1] - 2019-09-17

- 🛠️ Fixed bug: front matter separation didn't work with UNIX style LF

## [4.0.0] - 2019-09-12

- ✨ Enable YAML front matters
- ✨ Enable YAML data files
- ✨ Enable multiple data files in one document
- ✨ Automatic title updates based on the first `h1` header
- ✨ Scroll to the top of a page on internal navigation
- ✨ Add `active` class for internal links pointing to the current page
- ✨ Default error message for 404 HTTP errors
- 🔺 Changed Markdown parser to [ExtraMark](https://github.com/vimtaai/extramark)
- 🔺 Changed templating method to use [mustache templates](http://mustache.github.io/) (⚡)
- 🔺 Changed syntax highlighter to [Prism](https://prismjs.com/) for faster load times (⚡)
- 🔺 Changed the way data is loaded from data files (⚡)
