Skip to content

Commit 29db070

Browse files
escape multiline uses other trim newline func
1 parent 6b0ee58 commit 29db070

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

internal/textutils/escape_multiline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package textutils
22

33
// EscapeMultiLine deals with multiline content inside a link or a heading.
44
func EscapeMultiLine(content []byte) []byte {
5-
content = TrimConsecutiveNewlines(content)
5+
content = Alternative_TrimConsecutiveNewlines(content)
66

77
newContent := make([]byte, 0, len(content))
88

plugin/commonmark/testdata/GoldenFiles/heading.out.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ not title
109109
110110
* * *
111111

112-
> [**Heading 2**
112+
> [**Heading 2**
113113
> \
114114
> Description Line 1
115115
> Description Line 2
116-
> Description Line 3
116+
> Description Line 3
117117
> \
118118
> "Some quote"](/page.html)
119119

plugin/commonmark/testdata/GoldenFiles/link.out.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ B](/)
147147

148148
<!--link with two br-->
149149

150-
[A
150+
[A
151151
\
152152
B](/)
153153

154154
<!--link with three br-->
155155

156-
[A
156+
[A
157157
\
158158
B](/)
159159

0 commit comments

Comments
 (0)