Skip to content

Commit

Permalink
update md renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
thbkrkr committed Feb 29, 2024
1 parent 6eb9ab5 commit 71810c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderer/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ func (m *MarkdownRenderer) RenderFieldDoc(text string) string {
// so that including | in a comment does not result in wonky tables.
out := strings.ReplaceAll(text, "|", "\\|")

// Replace newlines with 2 line breaks so that they don't break the Markdown table formatting.
return strings.ReplaceAll(out, "\n", "<br /><br />")
// Replace newlines with 1 line break so that they don't break the Markdown table formatting.
return strings.ReplaceAll(out, "\n", "<br />")
}

func (m *MarkdownRenderer) RenderDefault(text string) string {
Expand Down

0 comments on commit 71810c0

Please sign in to comment.