Optionally Preserving New Lines (#115)

This commit is contained in:
Brandon Wilson
2021-08-12 03:27:32 +02:00
committed by GitHub
parent 44a6b3913e
commit 8ea7b1c86c
6 changed files with 53 additions and 5 deletions
+5 -4
View File
@@ -15,10 +15,11 @@ import (
// Options is used to configure an ANSIRenderer.
type Options struct {
BaseURL string
WordWrap int
ColorProfile termenv.Profile
Styles StyleConfig
BaseURL string
WordWrap int
PreserveNewLines bool
ColorProfile termenv.Profile
Styles StyleConfig
}
// ANSIRenderer renders markdown content as ANSI escaped sequences.