You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature Request: Markdown Parser for Inline CALM Document Rendering
Description
We propose adding a Markdown (MD) parser to the Architecture as Code project that can render CALM documents inline. This feature would enhance the readability and usability of CALM documents by enabling users to embed and visualize the architecture as part of their documentation workflow.
Use Case
The CALM (Concepts, Attributes, Links, and Metrics) specification is central to this project, and many users document their architecture alongside other markdown content. With this feature, CALM documents could be visualized directly within markdown files, eliminating the need for external tools to interpret the JSON or YAML representations.
For example:
```calm{ "id": "exampleFlow", "name": "Account Information Flow", "description": "Handles updates to account data in the database.", "transitions": [ { "relationshipId": "rel1", "sequence": 1 }, { "relationshipId": "rel2", "sequence": 2 } ], "controls": ["auth-check", "audit-log"]}
Alternatively, a CALM document can be referenced directly from the file system
Conversion of CALM documents into a visual representation (e.g., C4 diagrams, flow diagrams). Leveraging visual controls built via tickets like Extend Visualizer to render Patterns #100 or Leverage the existing C4 and other diagram generation tools in the project for rendering.
Plugin Support:
Enable optional plugins to customize visualization styles and outputs.
Output Formats:
Default to SVG or PNG diagrams for rendered output.
Benefits
Streamlines the workflow by combining documentation and architecture in a single format.
Makes CALM documents easier to consume by technical and non-technical stakeholders.
Reduces the friction in generating diagrams or understanding the architecture.
Technical Considerations
Use an existing MD parser library (e.g., Markdown-it) to extend markdown parsing functionality.
Leverage libraries such as Mermaid or PlantUML for rendering diagrams.
Ensure support for various CALM document schemas to accommodate diverse use cases.
Consider performance impacts for large CALM documents embedded in markdown.
Potential Challenges
Ensuring the parser handles invalid or partial CALM documents gracefully.
Maintaining consistent rendering fidelity between inline markdown and standalone diagram generation tools.
Feature Request: Markdown Parser for Inline CALM Document Rendering
Description
We propose adding a Markdown (MD) parser to the Architecture as Code project that can render CALM documents inline. This feature would enhance the readability and usability of CALM documents by enabling users to embed and visualize the architecture as part of their documentation workflow.
Use Case
The CALM (Concepts, Attributes, Links, and Metrics) specification is central to this project, and many users document their architecture alongside other markdown content. With this feature, CALM documents could be visualized directly within markdown files, eliminating the need for external tools to interpret the JSON or YAML representations.
For example:
Alternatively, a CALM document can be referenced directly from the file system
Would render the document from file
Proposed Features
Benefits
Technical Considerations
Potential Challenges
Next Steps
The text was updated successfully, but these errors were encountered: