When creating a blog in Jekyll, I write it in markdown. Then, Jekyll converts that markdown to HTML.
I would like to add an extra step in that process that converts the markdown to text, stripping out the yml front matter and any markdown items. Alternatively, it could convert the HTML output to text, but the idea is I would have a .txt file that anyone could read with no markup contained within.
Looking online, I see lots of web services and paid APIs that can do such a conversion, but I am looking to add the converter such that any Jekyll build does the conversion for me. Alternatively, rather than doing the conversion during a Jekyll build, it would do the conversion using a GitHub Actions workflow. Either way, I would prefer this to be an open-source solution.
Has anyone had any experience with this? I suppose it would not be incredibly difficult to create a converter since there are plenty of straightforward ways to strip markup language from a file, but if something already exists, I would appreciate using that.
Unfortunately, my searches have not pulled anything up on this matter so I am searching for the wrong thing or there is an approach I have not thought of
Thanks!