reget

Crates.ioreget
lib.rsreget
version0.2.3
created_at2025-08-15 16:24:41.387179+00
updated_at2025-08-17 19:33:43.739261+00
descriptionA simple recipe parser for html and json-ld with optional markdown support
homepage
repositoryhttps://github.com/julian-go/reget
max_upload_size
id1797061
size60,411
Julian Gottwald (julian-go)

documentation

README

reget

Crates.io License

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.

Installation

cargo add reget

Usage

use reget::parse_recipe;

fn main() {
    let html = "<html>...</html>"; // HTML with JSON-LD recipe data
    let recipe = parse_recipe(html).unwrap();
}

Markdown support

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.

Commit count: 0

cargo fmt