feat: renderer

This commit is contained in:
2025-08-19 17:20:24 +02:00
parent 6db87db325
commit 210b31aef8
38 changed files with 727 additions and 299 deletions

8
testdata/data/article_simple/input.md vendored Normal file
View File

@@ -0,0 +1,8 @@
---
@type: Article
author.name: John Doe
---
# My First Article
This is the content of my first article. It's a simple one.

View File

@@ -0,0 +1,10 @@
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "My First Article",
"author": {
"@type": "Person",
"name": "John Doe"
},
"articleBody": "This is the content of my first article. It's a simple one."
}

17
testdata/data/baguette/input.md vendored Normal file
View File

@@ -0,0 +1,17 @@
---
@type: Recipe
author.name: Max Richter
---
# Baguette
My favourite baguette recipe
## Ingredients
- Flour
- Water
- Salt
## Steps
1. Mix Flour Water and Salt
2. Bake the bread

19
testdata/data/baguette/output.json vendored Normal file
View File

@@ -0,0 +1,19 @@
{
"@context": "https://schema.org",
"@type": "Recipe",
"name": "Baguette",
"author": {
"@type": "Person",
"name": "Max Richter"
},
"description": "My favourite baguette recipe",
"recipeIngredient": [
"Flour",
"Water",
"Salt"
],
"recipeInstructions": [
"Mix Flour Water and Salt",
"Bake the bread"
]
}

View File

@@ -0,0 +1,21 @@
---
@type: Recipe
author.name: Alex Chef
cookTime: PT0M
image: https://example.com/salad.jpg
prepTime: PT10M
recipeYield: 2 servings
---
# Simple Salad
## Ingredients
- 100 g lettuce
- 5 cherry tomatoes
- 1 tbsp olive oil
- Pinch of salt
## Steps
1. Wash and dry the lettuce.
2. Halve the cherry tomatoes.
3. Toss with olive oil and salt.

View File

@@ -0,0 +1,24 @@
{
"@context": "https://schema.org",
"@type": "Recipe",
"name": "Simple Salad",
"image": "https://example.com/salad.jpg",
"author": {
"@type": "Person",
"name": "Alex Chef"
},
"prepTime": "PT10M",
"cookTime": "PT0M",
"recipeYield": "2 servings",
"recipeIngredient": [
"100 g lettuce",
"5 cherry tomatoes",
"1 tbsp olive oil",
"Pinch of salt"
],
"recipeInstructions": [
"Wash and dry the lettuce.",
"Halve the cherry tomatoes.",
"Toss with olive oil and salt."
]
}

23
testdata/data/recipe_salad/input.md vendored Normal file
View File

@@ -0,0 +1,23 @@
---
@type: Recipe
author.name: Alex Chef
cookTime: PT0M
image: https://example.com/salad.jpg
prepTime: PT10M
recipeYield: 2 servings
---
# Simple Salad
A quick green salad.
## Ingredients
- 100 g lettuce
- 5 cherry tomatoes
- 1 tbsp olive oil
- Pinch of salt
## Steps
1. Wash and dry the lettuce.
2. Halve the cherry tomatoes.
3. Toss with olive oil and salt.

25
testdata/data/recipe_salad/output.json vendored Normal file
View File

@@ -0,0 +1,25 @@
{
"@context": "https://schema.org",
"@type": "Recipe",
"name": "Simple Salad",
"image": "https://example.com/salad.jpg",
"author": {
"@type": "Person",
"name": "Alex Chef"
},
"description": "A quick green salad.",
"prepTime": "PT10M",
"cookTime": "PT0M",
"recipeYield": "2 servings",
"recipeIngredient": [
"100 g lettuce",
"5 cherry tomatoes",
"1 tbsp olive oil",
"Pinch of salt"
],
"recipeInstructions": [
"Wash and dry the lettuce.",
"Halve the cherry tomatoes.",
"Toss with olive oil and salt."
]
}