From e5cbc04f94c8f7d3adf42b1f810cb27d77141ca2 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Fri, 23 Sep 2022 15:41:33 -0400 Subject: [PATCH] docs: use styled glamour markdown within viewport --- examples/glamour/main.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/glamour/main.go b/examples/glamour/main.go index dacf8f9..3b38911 100644 --- a/examples/glamour/main.go +++ b/examples/glamour/main.go @@ -11,7 +11,9 @@ import ( ) const content = ` -Today’s Menu +# Today’s Menu + +## Appetizers | Name | Price | Notes | | --- | --- | --- | @@ -20,7 +22,7 @@ Today’s Menu | Okonomiyaki | $4 | Takes a few minutes to make | | Curry | $3 | We can add squash if you’d like | -Seasonal Dishes +## Seasonal Dishes | Name | Price | Notes | | --- | --- | --- | @@ -28,7 +30,7 @@ Seasonal Dishes | Takoyaki | $3 | Fun to eat | | Winter squash | $3 | Today it's pumpkin | -Desserts +## Desserts | Name | Price | Notes | | --- | --- | --- | @@ -64,7 +66,7 @@ func newExample() (*example, error) { PaddingRight(2) renderer, err := glamour.NewTermRenderer( - glamour.WithStylePath("notty"), + glamour.WithAutoStyle(), glamour.WithWordWrap(width), ) if err != nil {