Closed MartenBE closed 1 year ago
Personally I find it a bit much for reveal-md to support JSON5, but fine :)
It's only because I have a template repository for colleagues and I wanted to include options with comments in the config files to explain to them what is advised to change (or not) and where they can find some resources. Somehow including comments in the JSON-files made reveal-md
fail to run. It also cursed with prettier in vs-code. I looked it up and there was jsonc and json5, but json5 seemed the better fit as it is standardized to make reveal-md
work with comments in the json files and to simplify editor support in those cases.
It is a very niche case, I totally admit, but it would help me (and maybe others) so I appreciate the time you took to merge :) !
I knew you had a good reason to create the pull request, thanks for taking the time to implement and explain it. In this case it's not a big deal, but the time (cost) to review and merge is often much, much less than the responsibility I take upon me after the fact.
This adds support for json5 files. This allows comments in the
reveal.json
andreveal-md.json
config files. Following files will be read in this order:reveal.json5
andreveal-md.json5
reveal.json
andreveal-md.json
will be read just like reveal-md already did. This allows for backward comptability.