Implement Custom Markdown Styling for Workflow Commands @Cerebrovinny (#853)
Implement Custom Markdown Styling for Workflow Commands
What
- Added custom markdown styling support for workflow command outputs
- Implemented a configurable markdown styling system through
atmos.yaml
- Added fallback to built-in default styles when no custom styles are defined
- Added new workflow error templates in markdown format
- Improved code readability and maintainability in markdown rendering logic
Why
- Enhances user experience
- Allows users to define their own color schemes and styling preferences
- Improves error message readability with consistent formatting and styling
- Makes the CLI more accessible by supporting both default and custom color schemes
- Follows modern CLI design patterns with rich text formatting
Technical Details
- Added
markdown
settings section inatmos.yaml
for custom styling configuration - Implemented style inheritance system (custom styles override built-in defaults)
- Added support for styling:
- Document text and background colors
- Headings (H1-H6) with custom colors and formatting
- Code blocks with syntax highlighting
- Links with custom colors and underlining
- Blockquotes and emphasis styles
- Enhanced error handling with structured markdown templates
- Added proper fallback mechanisms for style configuration
References
- Implements styling using glamour for terminal markdown rendering
- Follows ANSI terminal styling standards
- https://github.com/charmbracelet/bubbletea
- https://github.com/charmbracelet
- https://github.com/charmbracelet/glow
- https://github.com/charmbracelet/glamour/blob/master/styles/gallery/README.md
Testing
The implementation has been tested with:
- Custom styling configurations in
atmos.yaml
- Default styling fallback when no custom styles are defined