blocks 0.1.0

A high-performance Rust library for block-based content editing with JSON, Markdown, and HTML support
Documentation
{
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "title": "Sample Blog Post",
    "blocks": [
        {
            "id": "550e8400-e29b-41d4-a716-446655440001",
            "block_type": {
                "Header": {
                    "level": 1
                }
            },
            "content": "Welcome to My Blog",
            "metadata": {},
            "created_at": 1703001600,
            "updated_at": 1703001600
        },
        {
            "id": "550e8400-e29b-41d4-a716-446655440002",
            "block_type": "Text",
            "content": "This is the introduction paragraph. It explains what this blog post is about and sets the context for the reader.",
            "metadata": {},
            "created_at": 1703001600,
            "updated_at": 1703001600
        },
        {
            "id": "550e8400-e29b-41d4-a716-446655440003",
            "block_type": {
                "Header": {
                    "level": 2
                }
            },
            "content": "Key Features",
            "metadata": {},
            "created_at": 1703001600,
            "updated_at": 1703001600
        },
        {
            "id": "550e8400-e29b-41d4-a716-446655440004",
            "block_type": {
                "List": {
                    "list_type": "Unordered"
                }
            },
            "content": "Fast performance\nType-safe API\nEasy integration\nMultiple output formats",
            "metadata": {},
            "created_at": 1703001600,
            "updated_at": 1703001600
        },
        {
            "id": "550e8400-e29b-41d4-a716-446655440005",
            "block_type": {
                "Header": {
                    "level": 2
                }
            },
            "content": "Code Example",
            "metadata": {},
            "created_at": 1703001600,
            "updated_at": 1703001600
        },
        {
            "id": "550e8400-e29b-41d4-a716-446655440006",
            "block_type": {
                "Code": {
                    "language": "rust"
                }
            },
            "content": "use blocks::Document;\n\nfn main() {\n    let doc = Document::new();\n    println!(\"Created: {}\", doc.id);\n}",
            "metadata": {},
            "created_at": 1703001600,
            "updated_at": 1703001600
        },
        {
            "id": "550e8400-e29b-41d4-a716-446655440007",
            "block_type": "Quote",
            "content": "Simplicity is the ultimate sophistication.",
            "metadata": {
                "author": "Leonardo da Vinci"
            },
            "created_at": 1703001600,
            "updated_at": 1703001600
        },
        {
            "id": "550e8400-e29b-41d4-a716-446655440008",
            "block_type": {
                "Callout": {
                    "callout_type": "Info",
                    "title": "Note"
                }
            },
            "content": "This library requires Rust 1.70 or later.",
            "metadata": {},
            "created_at": 1703001600,
            "updated_at": 1703001600
        }
    ],
    "metadata": {
        "author": "John Doe",
        "category": "Technology",
        "tags": "rust,blocks,editor"
    },
    "created_at": 1703001600,
    "updated_at": 1703001600
}