legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
65 lines • 2.22 kB
JavaScript
/**
* Extensions Module - Enhanced Legal Markdown Functionality
*
* This module provides additional functionality beyond the original legal-markdown
* specification. It includes Node.js specific enhancements, utilities, and tools
* for extended document processing, validation, and format conversion.
*
* Features:
* - Document validation and structure checking
* - Enhanced output formatting and styling
* - Utility functions for document analysis
* - Batch processing capabilities for multiple files
* - LaTeX document conversion support
* - reStructuredText document conversion support
* - Template loops for array iteration and conditional blocks
* - Node.js specific enhancements and optimizations
*
* @example
* ```typescript
* import {
* validateDocumentStructure,
* formatLegalDocument,
* analyzeDocument,
* processBatch,
* convertLatexToLegalMarkdown,
* convertRstToLegalMarkdown,
* processTemplateLoops
* } from './extensions.js';
*
* // Validate document structure
* const validation = validateDocumentStructure(content);
*
* // Format document output
* const formatted = formatLegalDocument(content, { lineSpacing: 'double' });
*
* // Analyze document statistics
* const stats = analyzeDocument(content);
*
* // Process multiple files
* const result = await processBatch({
* inputDir: './documents',
* outputDir: './output'
* });
* ```
*/
// Extensions - Additional functionality beyond original legal-markdown
// These are Node.js specific enhancements and utilities
export * from './validators/index.js';
export * from './formatters/index.js';
export * from './utilities/index.js';
export * from './batch-processor.js';
export * from './rst-parser.js';
export * from './latex-parser.js';
export * from './template-loops.js';
export * from './ast-mixin-processor.js';
// Advanced helpers (Node.js extensions)
export * from './helpers/index.js';
// Enhanced parsers and generators
export * from './parsers/index.js';
export * from './generators/index.js';
// Enhanced field tracking
export * from './tracking/field-tracker.js';
// Remark-based processors
export * from './remark/legal-markdown-processor.js';
//# sourceMappingURL=index.js.map