FIX: don't create tags autolinks inside links (new engine)

This commit is contained in:
Sam
2017-07-07 13:03:36 -04:00
parent c47658c7c5
commit 6f09df0deb
3 changed files with 111 additions and 43 deletions

View File

@ -561,6 +561,12 @@ HTML
HTML
expect(cooked).to eq(html.strip)
# ensure it does not fight with the autolinker
expect(PrettyText.cook(' http://somewhere.com/#known')).not_to include('hashtag')
expect(PrettyText.cook(' http://somewhere.com/?#known')).not_to include('hashtag')
expect(PrettyText.cook(' http://somewhere.com/?abc#known')).not_to include('hashtag')
end
it "can handle mixed lists" do