feat: added keyword codec (partially works)
This commit is contained in:
20
testdata/data/complex_front_matter/input.md
vendored
Normal file
20
testdata/data/complex_front_matter/input.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
@type: Book
|
||||
name: The Great Book
|
||||
author:
|
||||
@type: Person
|
||||
name: Jane Doe
|
||||
email: jane.doe@example.com
|
||||
tags:
|
||||
- fiction
|
||||
- adventure
|
||||
chapters:
|
||||
- name: Chapter 1
|
||||
pages: 20
|
||||
- name: Chapter 2
|
||||
pages: 30
|
||||
---
|
||||
|
||||
# The Great Book
|
||||
|
||||
This is the content of the great book.
|
26
testdata/data/complex_front_matter/output.json
vendored
Normal file
26
testdata/data/complex_front_matter/output.json
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "The Great Book",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Jane Doe",
|
||||
"email": "jane.doe@example.com"
|
||||
},
|
||||
"tags": [
|
||||
"fiction",
|
||||
"adventure"
|
||||
],
|
||||
"chapters": [
|
||||
{
|
||||
"name": "Chapter 1",
|
||||
"pages": 20
|
||||
},
|
||||
{
|
||||
"name": "Chapter 2",
|
||||
"pages": 30
|
||||
}
|
||||
],
|
||||
"headline": "The Great Book",
|
||||
"articleBody": "This is the content of the great book."
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@schema": "Recipe",
|
||||
"@type": "Recipe",
|
||||
"name": "Simple Salad",
|
||||
"image": "https://example.com/salad.jpg",
|
||||
|
1
testdata/data/recipe_salad/input.md
vendored
1
testdata/data/recipe_salad/input.md
vendored
@@ -8,6 +8,7 @@ recipeYield: 2 servings
|
||||
---
|
||||
|
||||
# Simple Salad
|
||||
#healthy #salad
|
||||
|
||||
A quick green salad.
|
||||
|
||||
|
5
testdata/data/recipe_salad/output.json
vendored
5
testdata/data/recipe_salad/output.json
vendored
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@schema": "Recipe",
|
||||
"@type": "Recipe",
|
||||
"name": "Simple Salad",
|
||||
"image": "https://example.com/salad.jpg",
|
||||
@@ -7,6 +8,10 @@
|
||||
"@type": "Person",
|
||||
"name": "Alex Chef"
|
||||
},
|
||||
"keywords": [
|
||||
"healthy",
|
||||
"salad"
|
||||
],
|
||||
"description": "A quick green salad.",
|
||||
"prepTime": "PT10M",
|
||||
"cookTime": "PT0M",
|
||||
|
14
testdata/data/typo_section_header/input.md
vendored
Normal file
14
testdata/data/typo_section_header/input.md
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
@type: Recipe
|
||||
name: Typo Recipe
|
||||
---
|
||||
|
||||
# Typo Recipe
|
||||
|
||||
## Ingredints
|
||||
- Item 1
|
||||
- Item 2
|
||||
|
||||
## Stps
|
||||
1. Step 1
|
||||
2. Step 2
|
13
testdata/data/typo_section_header/output.json
vendored
Normal file
13
testdata/data/typo_section_header/output.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Recipe",
|
||||
"name": "Typo Recipe",
|
||||
"recipeIngredient": [
|
||||
"Item 1",
|
||||
"Item 2"
|
||||
],
|
||||
"recipeInstructions": [
|
||||
"Step 1",
|
||||
"Step 2"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user