-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Consolidate markdown-to-ADF (Atlassian Document Format) conversion logic to eliminate duplication between tools.
Current State
Both tools have markdown-to-ADF conversion:
cfl (tools/cfl/pkg/md/):
- Full bidirectional conversion (markdown ↔ ADF)
- Macro support for Confluence-specific features
- Well-structured with separate files for each direction
jtk (tools/jtk/api/markdown.go):
- Markdown to ADF only (372 lines)
- Duplicates significant goldmark parsing logic
- Simpler implementation without macro support
Proposed Changes
- Evaluate if jtk needs the full cfl implementation or a subset
- Move shared ADF conversion logic to
shared/adf/package - cfl's more complete implementation should be the basis
- jtk imports shared package, removing its local
markdown.go
Considerations
- Jira descriptions don't need Confluence macros
- May want to keep cfl's macro handling separate
- Core ADF node types are shared between products
Impact
~300+ lines could be consolidated
Complexity
This is a larger refactoring effort - recommend tackling after simpler consolidations are complete.
Metadata
Metadata
Assignees
Labels
No labels