github cloudposse/atmos v1.135.0

latest releases: v1.138.0, v1, v1.137.0...
3 days ago
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 in atmos.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

Testing

The implementation has been tested with:

  • Custom styling configurations in atmos.yaml
Screenshot 2024-12-29 at 23 34 33
  • Default styling fallback when no custom styles are defined
Screenshot 2024-12-30 at 23 37 04

Don't miss a new atmos release

NewReleases is sending notifications on new releases.