summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWieeRd <wowluke@naver.com>2022-07-16 18:41:56 +0900
committerChristian Muehlhaeuser <muesli@gmail.com>2023-01-23 17:41:06 +0100
commit19732a63035e316e3079d15030a573e89d7115cf (patch)
tree9bc9ac34810d6f941812b539e6632eef63ecb777
parent6543979ed18616ee16f71597618bf02c5ef42de9 (diff)
fix: support hard line breaks (charmbracelet#212)v1.5.0
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index e309949..17d66e7 100644
--- a/main.go
+++ b/main.go
@@ -271,6 +271,7 @@ func executeCLI(cmd *cobra.Command, src *source, w io.Writer) error {
gs,
glamour.WithWordWrap(int(width)),
glamour.WithBaseURL(baseURL),
+ glamour.WithPreservedNewLines(),
)
if err != nil {
return err