{"repo":"petalo/legal-markdown-js","free":true,"listed":false,"github":"https://github.com/petalo/legal-markdown-js","clone":"git clone https://github.com/petalo/legal-markdown-js.git","description":"Process markdown with YAML front matter, conditional clauses, cross-references, imports, and generate professional PDFs ready to be shared.","language":"TypeScript","stars":21,"topics":["legal-documents","legaltools","markdown","markdown-converter"],"license":"MIT","category":"productivity","readme_excerpt":"Legal Markdown JS TypeScript/Node.js implementation of LegalMarkdown Try it live in the hosted playground . What It Does Legal Markdown JS processes legal markdown documents and can generate: - Processed markdown - HTML - PDF - DOCX Core syntax supported: - Variables/helpers ( {{field}} , helpers, loops) - Legal headers ( l. , ll. , lll. , ...) - Optional clauses ( [text]{condition} ) - Cross references between sections ( reference ) - Imports ( @import path/to/file.md ) Check the features overview document for more details. Install npm Run without installing globally: Install the package locally in a project: Available binaries: - legal-md - legal-md-ui - legal-md-playground Homebrew Install the standalone macOS binary: After installing with Homebrew, you can use: - legal-md - legal-md ui - legal-md playground Install script Quick Start Install, then run your first conversion in seconds: 1. Install 2. Process a document Convert a Legal Markdown file to processed Markdown: Generate HTML, PDF, or DOCX: Input ( contract.md ) Output markdown Output HTML --- client: ACME Corp amount: 5000 include warranty: true --- l. Parties Agreement with {{client}} . l. Services ll. Payment Total due: ${{amount}}. [ll. Warranty Full warranty included.]{include warranty} &#35; 1. Parties Agreement with ACME Corp . &#35; 2. Services &#35;&#35; 2.1. Payment Total due: $5000. &#35;&#35; 2.2. Warranty Full warranty included. &lt;h1&gt;1. Parties&lt;/h1&gt; &lt;p&gt;Agreement with &lt;strong&gt;ACME","default_branch":null,"files":null,"tree":[],"storefront":"/r/petalo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/petalo/legal-markdown-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}