diff --git a/pkg/ui/markdown/renderer.go b/pkg/ui/markdown/renderer.go index bf07a6df5..f00e4059e 100644 --- a/pkg/ui/markdown/renderer.go +++ b/pkg/ui/markdown/renderer.go @@ -75,6 +75,10 @@ func (r *Renderer) RenderWorkflow(content string) (string, error) { func (r *Renderer) RenderError(title, details, examples string) (string, error) { var content string + if title != "" { + content += fmt.Sprintf("# %s\n\n", title) + } + if details != "" { content += fmt.Sprintf("%s\n\n", details) } diff --git a/pkg/ui/markdown/styles.go b/pkg/ui/markdown/styles.go index 60b90f9b7..ddb905607 100644 --- a/pkg/ui/markdown/styles.go +++ b/pkg/ui/markdown/styles.go @@ -35,13 +35,18 @@ var DefaultStyle = []byte(`{ "block_suffix": "\n", "color": "#00A3E0", "bold": true, - "margin": 0 + "margin": 0, + "style_override": true }, "h1": { - "prefix": "# ", - "color": "#00A3E0", + "prefix": "", + "color": "#FFFFFF", + "background_color": "#9B51E0", "bold": true, - "margin": 1 + "margin": 2, + "block_prefix": "\n", + "block_suffix": "\n", + "padding": 1 }, "h2": { "prefix": "## ",