| Crates.io | reget |
| lib.rs | reget |
| version | 0.2.3 |
| created_at | 2025-08-15 16:24:41.387179+00 |
| updated_at | 2025-08-17 19:33:43.739261+00 |
| description | A simple recipe parser for html and json-ld with optional markdown support |
| homepage | |
| repository | https://github.com/julian-go/reget |
| max_upload_size | |
| id | 1797061 |
| size | 60,411 |
A simple library for extracting a recipe from HTML documents using structured data (JSON-LD) embedded within.
With the optional markdown feature, recipes can be converted to a markdown string.
This library assumes the document follows the schema.org recipe specification.
cargo add reget
use reget::parse_recipe;
fn main() {
let html = "<html>...</html>"; // HTML with JSON-LD recipe data
let recipe = parse_recipe(html).unwrap();
}
The optional markdown feature can be used to convert recipes directly to markdown.
let md = recipe
.to_markdown()
.with_url("https://example.org/recipe")
.convert();
Or try the examples.