all repos — grayfriday @ 535ad76f6125eae56cef547b85c060974188a964

blackfriday fork with a few changes

Fix checking of backslash in link text (#510) (#511)

autopp autopp.inc@gmail.com
Mon, 21 Jan 2019 03:36:43 +0900
commit

535ad76f6125eae56cef547b85c060974188a964

parent

55e5149f61555035044acf10025bcbee10c49912

3 files changed, 4 insertions(+), 1 deletions(-)

jump to
M inline.goinline.go

@@ -278,7 +278,7 @@ switch {

case data[i] == '\n': textHasNl = true - case data[i-1] == '\\': + case isBackslashEscaped(data, i): continue case data[i] == '[':
M testdata/Links, inline style.htmltestdata/Links, inline style.html

@@ -8,4 +8,6 @@ <p><a href="/url/" title="title preceded by a tab">URL and title</a>.</p>

<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>
M testdata/Links, inline style.texttestdata/Links, inline style.text

@@ -8,5 +8,6 @@ [URL and title](/url/ "title preceded by a tab").

[URL and title](/url/ "title has spaces afterward" ). +[URL with backslash\\](/url/). [Empty]().