mirror of
https://github.com/danog/blackfriday.git
synced 2024-11-30 04:29:13 +01:00
parent
55e5149f61
commit
535ad76f61
@ -278,7 +278,7 @@ func link(p *Markdown, data []byte, offset int) (int, *Node) {
|
||||
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 backslash\</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 backslash\\](/url/).
|
||||
|
||||
[Empty]().
|
||||
|
Loading…
Reference in New Issue
Block a user