mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
FIX: don't create tags autolinks inside links (new engine)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user