// Package docforge is paliad's modular document-generator engine — the // format-neutral core that turns templates + variables into rendered // documents, with format-specific adapters living in sub-packages. // // The package is being extracted from the in-tree submission generator // (internal/services/submission_*.go) per the PRD in // docs/plans/prd-docforge-2026-05-29.md (t-paliad-349 / m/paliad#157). // The extraction follows the same packaging discipline as // pkg/litigationplanner: docforge owns its types and exposes interfaces // for the stateful inputs (variable resolution, template storage); the // consuming application (paliad) implements those interfaces against its // own database, and a future second consumer reaches the engine over an // HTTP veneer rather than importing it. // // Slice 1 (this commit) relocates the .docx adapter — the Markdown→OOXML // walker, the placeholder substitution engine, and the .dotm→.docx // converter — into pkg/docforge/docx with no behaviour change. paliad's // internal/services package keeps thin type-alias + forwarder shims so // the submission generator and its HTTP surface compile and behave // identically. Later slices introduce the neutral document model, // hoist the format-neutral placeholder grammar up to this root package, // and add the VariableResolver interface, the TemplateStore, the // authoring surface, and the pluggable Exporter. package docforge