legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
95 lines (66 loc) • 1.88 kB
Markdown
This document demonstrates how to use external metadata files with
LegalMarkdown.
l. **Parties**
This agreement is between {{client_name}} and {{provider_name}}.
ll. Effective Date
This agreement becomes effective on {{effective_date}}.
l. **Payment Terms**
Payment is due within {{payment_days}} days.
[]{late_fees_apply}
[]{include_warranty}
l. **Governing Law**
This agreement is governed by {{jurisdiction}} law.
---
```bash
legal-md metadata-example.md output.md --metadata agreement-metadata.json
```
This will process the document using:
- `client_name`: "ClientCorp LLC"
- `effective_date`: "2024-01-01"
- `payment_days`: 30
- `late_fees_apply`: true
- `include_warranty`: false
```bash
legal-md metadata-example.md output.md --metadata metadata.yaml
```
```bash
legal-md metadata-example.md output.md --metadata advanced-metadata.json
```
Create a JSON file with your variables:
```json
{
"client_name": "Your Client Name",
"provider_name": "Your Company",
"effective_date": "2024-12-01",
"jurisdiction": "Delaware",
"payment_days": 15,
"late_fees_apply": false,
"include_warranty": true,
"level-one": "Section %n.",
"level-two": "%n.%s"
}
```
Or use YAML format:
```yaml
client_name: 'Your Client Name'
provider_name: 'Your Company'
effective_date: '2024-12-01'
jurisdiction: 'Delaware'
payment_days: 15
late_fees_apply: false
include_warranty: true
level-one: 'Section %n.'
level-two: '%n.%s'
```