Adding Cooklang support to my site
I added cooklang support to main site which is running on Quartz. My first attempt was change the rendering function which outputs jsx which later gets rendered into html. It worked, but I wasn't satisfied with it.
So I looked into the official way and started building a transformer plugin which has access to the original file and the ast which is built from the markdown. I set up a flag in my recipes to mark them as such, then used mdast-builder to create a listing of ingredients and a list of steps.
So I looked into the official way and started building a transformer plugin which has access to the original file and the ast which is built from the markdown. I set up a flag in my recipes to mark them as such, then used mdast-builder to create a listing of ingredients and a list of steps.