{ "regular_tests": [ { "name": "codeblock_hilite", "input": "Hamlet said:\n~~~~.python \ndef speak(self):\n x = 1\n~~~~", "expected_output": "

Hamlet said:

\n
def speak(self):\n    x = 1\n
", "marked_expected_output": "

Hamlet said:

\n
def speak(self):\n    x = 1\n
", "text_content": "Hamlet said:\ndef speak(self):\n x = 1\n" }, { "name": "basic_paragraph", "input": "test_input", "expected_output": "

test_input

", "bugdown_matches_marked": true, "text_content": "test_input" }, { "name": "codeblock_multiline", "input": "Hamlet once said\n~~~~\ndef func():\n x = 1\n\n y = 2\n\n z = 3\n~~~~\nAnd all was good.", "expected_output": "

Hamlet once said

\n
def func():\n    x = 1\n\n    y = 2\n\n    z = 3\n
\n\n\n

And all was good.

", "bugdown_matches_marked": true, "text_content": "Hamlet once said\ndef func():\n x = 1\n\n y = 2\n\n z = 3\n\n\n\nAnd all was good." }, { "name": "codeblock_trailing_whitespace", "input": "Hamlet once said\n~~~~\ndef func():\n x = 1\n\n y = 2\t\t\n\n z = 3 \n~~~~\nAnd all was good.", "expected_output": "

Hamlet once said

\n
def func():\n    x = 1\n\n    y = 2\n\n    z = 3\n
\n\n\n

And all was good.

", "bugdown_matches_marked": true, "text_content": "Hamlet once said\ndef func():\n x = 1\n\n y = 2\n\n z = 3\n\n\n\nAnd all was good." }, { "name": "codeblock_backticks", "input": "\n```\nfenced code\n```\n\n```inline code```\n", "expected_output": "
fenced code\n
\n\n\n

inline code

", "bugdown_matches_marked": true, "text_content": "fenced code\n\n\n\ninline code" }, { "name": "hanging_multi_codeblock", "input": "Hamlet said:\n~~~~\ndef speak(self):\n x = 1\n# Comment to make this code block longer to test Trac #1162\n~~~~\n\nThen he mentioned ````y = 4 + x**2```` and\n~~~~\ndef foobar(self):\n return self.baz()", "expected_output": "

Hamlet said:

\n
def speak(self):\n    x = 1\n# Comment to make this code block longer to test Trac #1162\n
\n\n\n

Then he mentioned y = 4 + x**2 and

\n
def foobar(self):\n    return self.baz()\n
", "bugdown_matches_marked": true, "text_content": "Hamlet said:\ndef speak(self):\n x = 1\n# Comment to make this code block longer to test Trac #1162\n\n\n\nThen he mentioned y = 4 + x**2 and\ndef foobar(self):\n return self.baz()\n" }, { "name": "fenced_quote", "input": "Hamlet said:\n~~~ quote\nTo be or **not** to be.\n\nThat is the question\n~~~", "expected_output": "

Hamlet said:

\n
\n

To be or not to be.

\n

That is the question

\n
", "bugdown_matches_marked": true, "text_content": "Hamlet said:\n\nTo be or not to be.\nThat is the question\n" }, { "name": "fenced_nested_quote", "input": "Hamlet said:\n~~~ quote\nPolonius said:\n> This above all: to thine ownself be true,\nAnd it must follow, as the night the day,\nThou canst not then be false to any man.\n\nWhat good advice!\n~~~", "expected_output": "

Hamlet said:

\n
\n

Polonius said:

\n
\n

This above all: to thine ownself be true,
\nAnd it must follow, as the night the day,
\nThou canst not then be false to any man.

\n
\n

What good advice!

\n
", "bugdown_matches_marked": true, "text_content": "Hamlet said:\n\nPolonius said:\n\nThis above all: to thine ownself be true,\nAnd it must follow, as the night the day,\nThou canst not then be false to any man.\n\nWhat good advice!\n" }, { "name": "complexly_nested_quote", "input": "I heard about this second hand...\n~~~ quote\n\nHe said:\n~~~ quote\nThe customer is complaining.\n\nThey looked at this code:\n``` \ndef hello(): print 'hello\n```\nThey would prefer:\n~~~\ndef hello()\n puts 'hello'\nend\n~~~\n\nPlease advise.\n~~~\n\nShe said:\n~~~ quote\nJust send them this:\n```\necho \"hello\n\"\n```\n~~~", "expected_output": "

I heard about this second hand...

\n
\n

He said:

\n
\n

The customer is complaining.

\n

They looked at this code:

\n
def hello(): print 'hello\n
\n\n\n

They would prefer:

\n
\n

def hello()
\n puts 'hello'
\nend

\n
\n

Please advise.

\n
She said:\n~~~ quote\nJust send them this:\n```\necho "hello\n"\n```\n
", "bugdown_matches_marked": false, "text_content": "I heard about this second hand...\n\nHe said:\n\nThe customer is complaining.\nThey looked at this code:\ndef hello(): print 'hello\n\n\n\nThey would prefer:\n\ndef hello()\n puts 'hello'\nend\n\nPlease advise.\nShe said:\n~~~ quote\nJust send them this:\n```\necho \"hello\n\"\n```\n" }, { "name": "fenced_quote_with_hashtag", "input": "```quote\n# line 1\n# line 2\n```", "expected_output": "
\n

# line 1
\n# line 2

\n
", "bugdown_matches_marked": true, "text_content": "\n# line 1\n# line 2\n" }, { "name": "dangerous_block", "input": "xxxxxx xxxxx xxxxxxxx xxxx. x xxxx xxxxxxxxxx:\n\n```\"xxxx xxxx\\xxxxx\\xxxxxx\"```\n\nxxx xxxx xxxxx:```xx.xxxxxxx(x'^xxxx$', xx.xxxxxxxxx)```\n\nxxxxxxx'x xxxx xxxxxxxxxx ```'xxxx'```, xxxxx xxxxxxxxx xxxxx ^ xxx $ xxxxxx xxxxx xxxxxxxxxxxx xxx xxxx xx x xxxx xx xxxx xx xxx xxxxx xxxxxx?", "expected_output": "

xxxxxx xxxxx xxxxxxxx xxxx. x xxxx xxxxxxxxxx:

\n

\"xxxx xxxx\\xxxxx\\xxxxxx\"

\n

xxx xxxx xxxxx:xx.xxxxxxx(x'^xxxx$', xx.xxxxxxxxx)

\n

xxxxxxx'x xxxx xxxxxxxxxx 'xxxx', xxxxx xxxxxxxxx xxxxx ^ xxx $ xxxxxx xxxxx xxxxxxxxxxxx xxx xxxx xx x xxxx xx xxxx xx xxx xxxxx xxxxxx?

", "bugdown_matches_marked": false, "text_content": "xxxxxx xxxxx xxxxxxxx xxxx. x xxxx xxxxxxxxxx:\n\"xxxx xxxx\\xxxxx\\xxxxxx\"\nxxx xxxx xxxxx:xx.xxxxxxx(x'^xxxx$', xx.xxxxxxxxx)\nxxxxxxx'x xxxx xxxxxxxxxx 'xxxx', xxxxx xxxxxxxxx xxxxx ^ xxx $ xxxxxx xxxxx xxxxxxxxxxxx xxx xxxx xx x xxxx xx xxxx xx xxx xxxxx xxxxxx?" }, { "name": "dangerous_block", "input": "``` one ```\n\n``` two ```\n\n~~~~\nx = 1", "expected_output": "

one

\n

two

\n
x = 1\n
", "bugdown_matches_marked": true, "text_content": "one\ntwo\nx = 1\n" }, { "name": "four_space_code_block", "input": " def foo(): pass", "expected_output": "
def foo(): pass\n
", "marked_expected_output": "
def foo(): pass\n
", "text_content": "def foo(): pass\n" }, { "name": "two_space_not_code_block", "input": " notcode", "expected_output": "

notcode

", "marked_expected_output": "

notcode

", "text_content": "notcode" }, { "name": "ulist_standard", "input": "Some text with a list:\n\n* One item\n* Two items\n* Three items", "expected_output": "

Some text with a list:

\n", "bugdown_matches_marked": true, "text_content": "Some text with a list:\n\nOne item\nTwo items\nThree items\n" }, { "name": "ulist_hanging", "input": "Some text with a hanging list:\n* One item\n* Two items\n* Three items", "expected_output": "

Some text with a hanging list:

\n", "bugdown_matches_marked": true, "text_content": "Some text with a hanging list:\n\nOne item\nTwo items\nThree items\n" }, { "name": "ulist_hanging_mixed", "input": "Plain list\n\n* Alpha\n\n* Beta\n\nThen hang it off:\n* Ypsilon\n* Zeta", "expected_output": "

Plain list

\n\n

Then hang it off:

\n", "bugdown_matches_marked": false, "text_content": "Plain list\n\n\nAlpha\n\n\nBeta\n\n\nThen hang it off:\n\nYpsilon\nZeta\n" }, { "name": "ulist_hanging_multi", "input": "Plain list\n* Alpha\n* Beta\n\nAnd Again:\n* A\n* B\n* C\n\nOnce more for feeling:\n* Q\n* E\n* D", "expected_output": "

Plain list

\n\n

And Again:

\n\n

Once more for feeling:

\n", "bugdown_matches_marked": true, "text_content": "Plain list\n\nAlpha\nBeta\n\nAnd Again:\n\nA\nB\nC\n\nOnce more for feeling:\n\nQ\nE\nD\n" }, { "name": "ulist_nested_ulist_two_space_indent", "input": "Nested list\n* I am outer list\n * I am inner nested list first item\n * I am inner nested list second item", "expected_output": "

Nested list

\n", "bugdown_matches_marked": true, "text_content": "Nested list\n\nI am outer list\nI am inner nested list first item\nI am inner nested list second item\n\n\n" }, { "name": "ulist_list_two_space_indent", "input": "* I am outer list\n I am something inside", "expected_output": "", "marked_expected_output": "", "text_content": "\nI am outer list\n I am something inside\n" }, { "name": "ulist_codeblock", "input": "~~~\nint x = 3\n* 4;\n~~~", "expected_output": "
int x = 3\n* 4;\n
", "bugdown_matches_marked": true, "text_content": "int x = 3\n* 4;\n" }, { "name": "malformed_fence", "input": "~~~~~~~~xxxxxxxxx: xxxxxxxxxxxx xxxxx x xxxxxxxx~~~~~~", "expected_output": "

~~~~~~~~xxxxxxxxx: xxxxxxxxxxxx xxxxx x xxxxxxxx~~~~~~

", "bugdown_matches_marked": true, "text_content": "~~~~~~~~xxxxxxxxx: xxxxxxxxxxxx xxxxx x xxxxxxxx~~~~~~" }, { "name": "strikthrough_basic", "input": "I like ~~software~~ hardware", "expected_output": "

I like software hardware

", "bugdown_matches_marked": true, "text_content": "I like software hardware" }, { "name": "strikthrough_multiword", "input": "I ~~like software~~ love hardware", "expected_output": "

I like software love hardware

", "bugdown_matches_marked": true, "text_content": "I like software love hardware" }, { "name": "strikthrough_multiword", "input": "I ~~ like software ~~ love hardware", "expected_output": "

I like software love hardware

", "bugdown_matches_marked": true, "text_content": "I like software love hardware" }, { "name": "underscore_disabled", "input": "_foo_", "expected_output": "

_foo_

", "bugdown_matches_marked": true }, { "name": "emphasis_text", "input": "*foo*", "expected_output": "

foo

", "bugdown_matches_marked": true, "text_content": "foo" }, { "name": "emphasis_code", "input": "const char *x = (char *)y", "expected_output": "

const char *x = (char *)y

", "bugdown_matches_marked": true }, { "name": "emphasis_with_space", "input": "A *foo bar* is a *baz quux*", "expected_output": "

A foo bar is a baz quux

", "bugdown_matches_marked": true, "text_content": "A foo bar is a baz quux" }, { "name": "underscore_strong_disabled", "input": "__foo__", "expected_output": "

__foo__

", "bugdown_matches_marked": true }, { "name": "star_strong", "input": "**foo**", "expected_output": "

foo

", "bugdown_matches_marked": true, "text_content": "foo" }, { "name": "numbered_list", "input": "1. A\n 2. B", "expected_output": "

1. A
\n 2. B

", "bugdown_matches_marked": true, "text_content": "1. A\n 2. B" }, { "name": "linkify_interference", "input": "link: xx, x xxxxx xx xxxx xx\n\n[xxxxx #xx](http://xxxxxxxxx:xxxx/xxx/xxxxxx%xxxxxx/xx/):**xxxxxxx**\n\nxxxxxxx xxxxx xxxx xxxxx:\n`xxxxxx`: xxxxxxx\n`xxxxxx`: xxxxx\n`xxxxxx`: xxxxx xxxxx", "expected_output": "

link: xx, x xxxxx xx xxxx xx

\n

xxxxx #xx:xxxxxxx

\n

xxxxxxx xxxxx xxxx xxxxx:
\nxxxxxx: xxxxxxx
\nxxxxxx: xxxxx
\nxxxxxx: xxxxx xxxxx

", "bugdown_matches_marked": true, "text_content": "link: xx, x xxxxx xx xxxx xx\nxxxxx #xx:xxxxxxx\nxxxxxxx xxxxx xxxx xxxxx:\nxxxxxx: xxxxxxx\nxxxxxx: xxxxx\nxxxxxx: xxxxx xxxxx" }, { "name": "inline_image", "input": "Google logo today: https://www.google.com/images/srpr/logo4w.png\nKinda boring", "expected_output": "

Google logo today: https://www.google.com/images/srpr/logo4w.png
\nKinda boring

\n
", "backend_only_rendering": true, "text_content": "Google logo today: https:\/\/www.google.com\/images\/srpr\/logo4w.png\nKinda boring\n" }, { "name": "two_inline_images", "input": "Google logo today: https://www.google.com/images/srpr/logo4w.png\nKinda boringGoogle logo today: https://www.google.com/images/srpr/logo4w.png\nKinda boring", "expected_output": "

Google logo today: https://www.google.com/images/srpr/logo4w.png
\nKinda boringGoogle logo today: https://www.google.com/images/srpr/logo4w.png
\nKinda boring

\n
", "backend_only_rendering": true, "text_content": "Google logo today: https:\/\/www.google.com\/images\/srpr\/logo4w.png\nKinda boringGoogle logo today: https:\/\/www.google.com\/images\/srpr\/logo4w.png\nKinda boring\n" }, { "name": "camo", "input": "Google logo today: http://www.google.com/images/srpr/logo4w.png", "expected_output": "

Google logo today: http://www.google.com/images/srpr/logo4w.png

\n
", "backend_only_rendering": true }, { "name": "nl2br", "input": "test\nbar", "expected_output": "

test
\nbar

", "bugdown_matches_marked": true, "text_content": "test\nbar" }, { "name": "nl2br_trailing_space", "input": "test ", "expected_output": "

test

", "bugdown_matches_marked": true, "text_content": "test " }, { "name": "tables", "input": "This is a table:\n\nFirst Header | Second Header\n------------- | -------------\nContent Cell | Content Cell\nContent Cell | Content Cell\n", "expected_output": "

This is a table:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
", "bugdown_matches_marked": true, "text_content": "This is a table:\n\n\n\nFirst Header\nSecond Header\n\n\n\n\nContent Cell\nContent Cell\n\n\nContent Cell\nContent Cell\n\n\n" }, { "name": "multiline_strong", "input": "You can check out **any time you'd like\nBut you can never leave**", "expected_output": "

You can check out **any time you'd like
\nBut you can never leave**

", "bugdown_matches_marked": false, "text_content": "You can check out **any time you'd like\nBut you can never leave**" }, { "name": "many_emoji", "input": "test :smile: again :poop:\n:) foo:)bar x::y::z :wasted waste: :fakeemojithisshouldnotrender:", "expected_output": "

test :smile: again :poop:
\n:) foo:)bar x::y::z :wasted waste: :fakeemojithisshouldnotrender:

", "bugdown_matches_marked": true, "text_content": "test \ud83d\ude04 again \ud83d\udca9\n:) foo:)bar x::y::z :wasted waste: :fakeemojithisshouldnotrender:" }, { "name": "random_emoji_1", "input": ":airplane:", "expected_output": "

:airplane:

", "bugdown_matches_marked": true }, { "name": "zulip_emoji", "input": ":zulip:", "expected_output": "

\":zulip:\"

", "bugdown_matches_marked": true, "text_content": ":zulip:" }, { "name": "random_emoji_2", "input": ":poop:", "expected_output": "

:poop:

", "bugdown_matches_marked": true }, { "name": "emojis_without_space", "input": ":cat:hello:dog::rabbit:", "expected_output": "

:cat:hello:dog::rabbit:

", "bugdown_matches_marked": true, "text_content": "\ud83d\udc31hello\ud83d\udc36\ud83d\udc30" }, { "name": "emojis_newline", "input": ":cat:\n:dog:", "expected_output": "

:cat:
\n:dog:

", "bugdown_matches_marked": true, "text_content": "\ud83d\udc31\n\ud83d\udc36" }, { "name": "not_emoji", "input": ":not_an_emoji:", "expected_output": "

:not_an_emoji:

", "bugdown_matches_marked": true, "text_content": ":not_an_emoji:" }, { "name": "unicode_emoji", "input": "\ud83d\udca9", "expected_output":"

:poop:

", "bugdown_matches_marked": true, "text_content": "\ud83d\udca9" }, { "name": "two_unicode_emoji", "input": "\ud83d\udca9\ud83d\udca9", "expected_output":"

:poop::poop:<\/p>", "bugdown_matches_marked": true, "text_content": "\ud83d\udca9\ud83d\udca9" }, { "name": "two_unicode_emoji_separated_by_text", "input": "\ud83d\udca9 word \ud83d\udca9", "expected_output":"

:poop: word :poop:<\/p>", "bugdown_matches_marked": true, "text_content": "\ud83d\udca9 word \ud83d\udca9" }, { "name": "miscellaneous_symbols_and_pictographs", "input": "Merry Christmas!!\ud83c\udf84", "expected_output":"

Merry Christmas!!:christmas_tree:<\/p>", "bugdown_matches_marked": true, "text_content": "Merry Christmas!!\ud83c\udf84" }, { "name": "miscellaneous_and_dingbats_emoji", "input": "\u2693\u2797", "expected_output":"

:anchor::heavy_division_sign:<\/p>", "bugdown_matches_marked": true }, { "name": "supplemental_symbols_and_pictographs", "input": "I am a robot \ud83e\udd16.", "expected_output":"

I am a robot :robot_face:.<\/p>", "bugdown_matches_marked": true }, { "name": "miscellaneous_symbols_and_arrows", "input": "Black upward arrow \u2b06", "expected_output":"

Black upward arrow :arrow_up:<\/p>", "bugdown_matches_marked": true }, { "name": "unicode_emoji_without_space", "input": "Extra\ud83d\udc7dTerrestrial", "expected_output":"

Extra:alien:Terrestrial<\/p>", "bugdown_matches_marked": true }, { "name": "unicode_emojis_new_line", "input": "\ud83d\udc7d\n\ud83d\udc7d", "expected_output":"

:alien:
\n:alien:

", "bugdown_matches_marked": true, "text_content": "\ud83d\udc7d\n\ud83d\udc7d" }, { "name": "emoji_alongside_punctuation", "input": ":smile:, :smile:; :smile:", "expected_output": "

:smile:, :smile:; :smile:

", "bugdown_matches_marked": true }, { "name": "new_emoji_test", "input": ":avocado:, :kiwifruit:, :selfie:, :gear:, :comet:, :first_place_medal:", "expected_output": "

:avocado:, :kiwifruit:, :selfie:, :gear:, :comet:, :first_place_medal:

", "bugdown_matches_marked": true }, { "name": "skin_tones_are_banned", "input": ":skin-tone-2: :skin-tone-3:", "expected_output": "

:skin-tone-2: :skin-tone-3:

", "bugdown_matches_marked": true }, { "name": "fried_egg", "input": "new :fried_egg: emoji is banned for now.", "expected_output": "

new :fried_egg: emoji is banned for now.

", "bugdown_matches_marked": true }, { "name": "emojis_with_zwj_are_banned", "input": "Emojis like :man-girl-girl: which have ZWJ are banned for now.", "expected_output": "

Emojis like :man-girl-girl: which have ZWJ are banned for now.

", "bugdown_matches_marked": true, "text_content": "Emojis like :man-girl-girl: which have ZWJ are banned for now." }, { "name": "safe_html", "input": "

stay normal

thanks", "expected_output": "

<h1>stay normal</h1> thanks

", "bugdown_matches_marked": true, "text_content": "

stay normal<\/h1> thanks" }, { "name": "safe_html_with_simple_script_tag", "input": "", "expected_output": "

<script>alert(1)</script>

", "bugdown_matches_marked": false, "text_content": "/script>", "expected_output": "

<<script>script>evil()<</script>/script>

", "bugdown_matches_marked": true, "text_content": "<ipt type=\"text/javascript\">alert(\"foo\");script>", "expected_output": "

<scr<script></script>ipt type=\"text/javascript\">alert(\"foo\");</<script></script>script<del></del>>

", "bugdown_matches_marked": false }, { "name": "safe_html_unclosed_tag", "input": "$$\n\n~~~math\n\n~~~", "expected_output": "

<scripttype=text/javascript>alert(xss);</script><script type='text/javascript'>alert('xss');</script><scripttype=text/javascript>alert(xss);</script>

\n

<scripttype=text/javascript>alert(xss);</script><script type='text/javascript'>alert('xss');</script><scripttype=text/javascript>alert(xss);</script>

", "bugdown_matches_marked": false }, { "name": "tex_error_safe_script_tag", "input": "$$\\$$\n\n~~~math\n\\\n~~~", "expected_output": "

$$\\<script type='text/javascript'>alert('xss');</script>$$

\n

\\<script type='text/javascript'>alert('xss');</script>

", "bugdown_matches_marked": false } ], "linkify_tests": [ [ "http://www.google.com", "

%s

", "http://www.google.com" ], [ "https://www.google.com", "

%s

", "https://www.google.com" ], [ "http://www.theregister.co.uk/foo/bar", "

%s

", "http://www.theregister.co.uk/foo/bar" ], [ " some text https://www.google.com/", "

some text %s

", "https://www.google.com/" ], [ "with short example.com url", "

with short %s url

", "example.com" ], [ "t.co", "

%s

", "t.co" ], [ "readme.md", "

readme.md

", "readme.md" ], [ "go to views.org please", "

go to %s please

", "views.org" ], [ "http://foo.com/blah_blah/", "

%s

", "http://foo.com/blah_blah/" ], [ "python class views.py is", "

python class views.py is

", "" ], [ "with www www.zulip.com/foo ok?", "

with www %s ok?

", "www.zulip.com/foo" ], [ "allow questions like foo.com?", "

allow questions like %s?

", "foo.com" ], [ "\"is.gd/foo/ \"", "

\"%s \"

", "is.gd/foo/" ], [ "end of sentence https://t.co.", "

end of sentence %s.

", "https://t.co" ], [ "(Something like http://foo.com/blah_blah)", "

(Something like %s)

", "http://foo.com/blah_blah" ], [ "\"is.gd/foo/\"", "

\"%s\"

", "is.gd/foo/" ], [ "end with a quote www.google.com\"", "

end with a quote %s\"

", "www.google.com" ], [ "end with an exclamation www.google.com!", "

end with an exclamation %s!

", "www.google.com" ], [ "http://www.guardian.co.uk/foo/bar", "

%s

", "http://www.guardian.co.uk/foo/bar" ], [ "from http://supervisord.org/running.html:", "

from %s:

", "http://supervisord.org/running.html" ], [ "http://raven.io", "

%s

", "http://raven.io" ], [ "at https://zulip.com/api. Check it!", "

at %s. Check it!

", "https://zulip.com/api" ], [ "goo.gl/abc", "

%s

", "goo.gl/abc" ], [ "I spent a year at ucl.ac.uk", "

I spent a year at %s

", "ucl.ac.uk" ], [ "http://a.cc/i/FMXO", "

%s

", "http://a.cc/i/FMXO" ], [ "http://fmota.eu/blog/test.html", "

%s

", "http://fmota.eu/blog/test.html" ], [ "http://j.mp/14Hwm3X", "

%s

", "http://j.mp/14Hwm3X" ], [ "http://localhost:9991/?show_debug=1", "

%s

", "http://localhost:9991/?show_debug=1" ], [ "anyone before? (http://a.cc/i/FMXO)", "

anyone before? (%s)

", "http://a.cc/i/FMXO" ], [ "(http://en.wikipedia.org/wiki/Each-way_(bet))", "

(%s)

", "http://en.wikipedia.org/wiki/Each-way_(bet)" ], [ "(http://en.wikipedia.org/wiki/Each-way_(bet)_(more_parens))", "

(%s)

", "http://en.wikipedia.org/wiki/Each-way_(bet)_(more_parens)" ], [ "http://en.wikipedia.org/wiki/Qt_(framework)", "

%s

", "http://en.wikipedia.org/wiki/Qt_(framework)" ], [ "http://fr.wikipedia.org/wiki/Fichier:SMirC-facepalm.svg", "

%s

", "http://fr.wikipedia.org/wiki/Fichier:SMirC-facepalm.svg" ], [ "https://en.wikipedia.org/wiki/File:Methamphetamine_from_ephedrine_with_HI_en.mov", "

%s

", "https://en.wikipedia.org/wiki/File:Methamphetamine_from_ephedrine_with_HI_en.mov" ], [ "https://jira.atlassian.com/browse/JRA-31953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel", "

%s

", "https://jira.atlassian.com/browse/JRA-31953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel" ], [ "http://web.archive.org/web/20120630032016/http://web.mit.edu/mitcard/idpolicies.html", "

%s

", "http://web.archive.org/web/20120630032016/http://web.mit.edu/mitcard/idpolicies.html" ], [ "http://www.postgresql.org/message-id/14040.1364490185@sss.pgh.pa.us", "

%s

", "http://www.postgresql.org/message-id/14040.1364490185@sss.pgh.pa.us" ], [ "javascript:alert(\"hi\");.com", "

javascript:alert(\"hi\");.com

", "" ], [ "javascript:foo.com", "

javascript:%s

", "foo.com" ], [ "javascript://foo.com", "

javascript://foo.com

", "" ], [ "foobarscript://foo.com", "

foobarscript://foo.com

", "" ], [ "about:blank.com", "

about:%s

", "blank.com" ], [ "[foo](javascript:foo.com)", "

[foo](javascript:%s)

", "foo.com" ], [ "[foo](javascript://foo.com)", "

[foo](javascript://foo.com)

", "" ], [ "aim:addbuddy?screenname=foo", "

aim:addbuddy?screenname=foo

", "" ], [ "itms://itunes.com/apps/appname", "

itms://itunes.com/apps/appname

", "" ], [ "[foo](itms://itunes.com/apps/appname)", "

[foo](itms://itunes.com/apps/appname)

", "" ], [ "1 [](foo://) 3 [](foo://) 5", "

1 [](foo://) 3 [](foo://) 5

", "" ], [ "javascript:\"foo&bar\"", "

javascript:<i>\"foo&bar\"</i>

", "" ], [ "[foo](javascript:\"foo&bar\")", "

[foo](javascript:<i>\"foo&bar\"</i>)

", "" ], [ "a@b.com", "

%s

", "a@b.com" ], [ "", "

<%s>

", "a@b.com" ], [ "a@b.com/foo", "

a@b.com/foo

", "" ], [ "http://leo@foo.com/my/file", "

%s

", "http://leo@foo.com/my/file" ], [ "http://example.com/something?with,commas,in,url, but not at end", "

%s, but not at end

", "http://example.com/something?with,commas,in,url" ], [ "http://www.yelp.com/biz/taim-mobile-falafel-and-smoothie-truck-new-york#query", "

%s

", "http://www.yelp.com/biz/taim-mobile-falafel-and-smoothie-truck-new-york#query" ], [ " some text https://www.google.com/baz_(match)?with=foo&bar=baz with extras", "

some text %s with extras

", "https://www.google.com/baz_(match)?with=foo&bar=baz" ], [ "hash it http://foo.com/blah_(wikipedia)_blah#cite-1", "

hash it %s

", "http://foo.com/blah_(wikipedia)_blah#cite-1" ], [ "http://technet.microsoft.com/en-us/library/Cc751099.rk20_25_big(l=en-us).mov", "

%s

", "http://technet.microsoft.com/en-us/library/Cc751099.rk20_25_big(l=en-us).mov" ], [ "https://metacpan.org/module/Image::Resize::OpenCV", "

%s

", "https://metacpan.org/module/Image::Resize::OpenCV" ], [ "foo.com/a::trollface::b", "

%s

", "foo.com/a::trollface::b" ], [ "a.commandstuff()", "

a.commandstuff()

", "" ], [ "love...it", "

love...it

", "" ], [ "sorry,http://example.com/", "

sorry,%s

", "http://example.com/" ], [ "two nested parens https://zulip.com/(we_like_(to_nest_)_nest)_nest", "

two nested parens %s

", "https://zulip.com/(we_like_(to_nest_)_nest)_nest" ], [ "three nested parens https://zulip.com/(we_like_(to_(and_)nest_)_nest)_nest", "

three nested parens %s

", "https://zulip.com/(we_like_(to_(and_)nest_)_nest)_nest" ], [ "four nested parens https://zulip.com/(we_like_(to_n(e)st_)_n(es)t)_nest", "

four nested parens %s

", "https://zulip.com/(we_like_(to_n(e)st_)_n(es)t)_nest" ], [ "six nested parens https://zulip.com/(we_like_((t(d(o(___)o)o))o_nest_)_nest)_nest", "

six nested parens %s

", "https://zulip.com/(we_like_((t(d(o(___)o)o))o_nest_)_nest)_nest" ], [ "eight is too many https://zulip.com/(we_like_((t(d(o(_(1(2)1)__)o)o))o_nest_)_nest)_nest", "

eight is too many https://zulip.com/(we_like_((t(d(o(_(1(2)1)__)o)o))o_nest_)_nest)_nest

", "" ], [ "nested with autodetection zulip.us/(we_like_(to_n(e)st_)_n(es)t)_nest", "

nested with autodetection %s

", "zulip.us/(we_like_(to_n(e)st_)_n(es)t)_nest" ], [ "quora http://generate.quora.net/render?width=700&from=-4hours&until=now&height=400&bgcolor=black&lineMode=connected&title=arb%20hint%20status&target=alias(ans.hintland.hand.arb.enhint_rate%2C%22enhint%20rate%22)&target=alias(ans.hintland.hand.arb.unhint_rate%2C%22unhint%20rate%22)&target=alias(ans.hintland.hand.arb.size%2C%22hint%20size%22)&target=alias(scale(ans.vagabond.dingarb_cube_count%2C10000)%2C%22cube%20count%20x%2010K%22)&target=alias(scale(hnumbers.time.ding.gegevens.query.count%2C10)%2C%22ding%20gegevens%20query%20count%20x%2010%22)&fgcolor=white&uniq=0.44046106841415167", "

quora %s

", "http://generate.quora.net/render?width=700&from=-4hours&until=now&height=400&bgcolor=black&lineMode=connected&title=arb%20hint%20status&target=alias(ans.hintland.hand.arb.enhint_rate%2C%22enhint%20rate%22)&target=alias(ans.hintland.hand.arb.unhint_rate%2C%22unhint%20rate%22)&target=alias(ans.hintland.hand.arb.size%2C%22hint%20size%22)&target=alias(scale(ans.vagabond.dingarb_cube_count%2C10000)%2C%22cube%20count%20x%2010K%22)&target=alias(scale(hnumbers.time.ding.gegevens.query.count%2C10)%2C%22ding%20gegevens%20query%20count%20x%2010%22)&fgcolor=white&uniq=0.44046106841415167" ] ] }