mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
parent
abafa45cd8
commit
8c3eacd7a5
|
@ -252,7 +252,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
|
|||
case data[i] == '\n':
|
||||
textHasNl = true
|
||||
|
||||
case data[i-1] == '\\':
|
||||
case isBackslashEscaped(data, i):
|
||||
continue
|
||||
|
||||
case data[i] == '[':
|
||||
|
|
2
testdata/Links, inline style.html
vendored
2
testdata/Links, inline style.html
vendored
|
@ -8,4 +8,6 @@
|
|||
|
||||
<p><a href="/url/" title="title has spaces afterward">URL and title</a>.</p>
|
||||
|
||||
<p><a href="/url/">URL with backslashes\</a>.</p>
|
||||
|
||||
<p>[Empty]().</p>
|
||||
|
|
1
testdata/Links, inline style.text
vendored
1
testdata/Links, inline style.text
vendored
|
@ -8,5 +8,6 @@ Just a [URL](/url/).
|
|||
|
||||
[URL and title](/url/ "title has spaces afterward" ).
|
||||
|
||||
[URL with backslashes\\](/url/).
|
||||
|
||||
[Empty]().
|
||||
|
|
Loading…
Reference in New Issue
Block a user