Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I needed a way to render lists and list items for different output formats.
I'm writing a food blog and wrote the recipes directly in json-ld format first and used the JSON as input for my template. This has some drawbacks. I use the image processing quite extensively and that's something that couldn't be used in this scenario. Also google recently changed the way json-ld is accepted with sub-recipes so I decided to instead write my recipes in markdown (with the help of some shortcakes) and render them to html and json-ld, so that I can react to changes with a simple edit of my templates.
But this required the list and especially listitem hooks provided in this PR.