UNPKG

legal-markdown-js

Version:

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

59 lines 1.92 kB
/** * 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'; * * // 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' * }); * ``` */ export * from './validators/index'; export * from './formatters/index'; export * from './utilities/index'; export * from './batch-processor'; export * from './rst-parser'; export * from './latex-parser'; export * from './template-loops'; export * from './ast-mixin-processor'; export * from './helpers/index'; export * from './parsers/index'; export * from './generators/index'; export * from './tracking/field-tracker'; export * from './remark/legal-markdown-processor'; //# sourceMappingURL=index.d.ts.map