UNPKG

legal-markdown-js

Version:

Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version

38 lines (26 loc) 1.06 kB
# YAML Front Matter Processing Demonstrates YAML front matter parsing and metadata extraction. This example shows how Legal Markdown handles document metadata and separates it from content. ## 📋 What this example demonstrates - YAML front matter parsing - Metadata extraction and validation - Document structure separation - YAML-only processing mode ## 📁 Files - **document.md** - Document with YAML frontmatter - **document.output.md** - Processed document with metadata applied - **document.output.html** - HTML output with metadata integration - **document.yaml-only.md** - YAML metadata extraction only ## 🚀 Usage ```bash ./run.sh ``` ## 🔍 Key features shown 1. **YAML Parsing**: Robust YAML frontmatter parsing 2. **Metadata Extraction**: Separating metadata from content 3. **YAML-Only Mode**: Extracting only the YAML metadata 4. **Document Structure**: Understanding document organization ## 💡 Learn more - [YAML Frontmatter Guide](../../../docs/features/yaml-frontmatter.md) - [Output Overview](../../../docs/output/README.md)