mirror of
https://gitea.com/gitea/tea.git
synced 2024-06-03 02:01:24 +05:30
use new glamour feature: preserve new lines
This commit is contained in:
parent
c2b0fa0e57
commit
4c3faa9764
|
@ -19,6 +19,7 @@ func outputMarkdown(markdown string, baseURL string) error {
|
|||
renderer, err := glamour.NewTermRenderer(
|
||||
glamour.WithAutoStyle(),
|
||||
glamour.WithBaseURL(baseURL),
|
||||
glamour.WithPreservedNewLines(),
|
||||
glamour.WithWordWrap(getWordWrap()),
|
||||
)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue