Closed kloczek closed 6 months ago
Here is pytest output:
url http://www.youtube.com/watch?v=5Jt5GEr4AYg.
\n] _ line = 1, title = 'linkify', input = 'url http://www.youtube.com/watch?v=5Jt5GEr4AYg.\n' expected = 'url http://www.youtube.com/watch?v=5Jt5GEr4AYg.
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[8 of 47], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError ___________________ test_linkify[9-don't touch text in links-[https://example.com](https://example.com)\n-\n] ___________________ line = 9, title = "don't touch text in links", input = '[https://example.com](https://example.com)\n', expected = '\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[0 of 42], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError ___________________________ test_linkify[17-don't touch text in autolinks-https://example.com/foo&bar
\n] ________ line = 32, title = 'entities inside raw links', input = 'https://example.com/foo&bar\n' expected = 'https://example.com/foo&bar
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[5 of 31], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError _ test_linkify[40-emphasis inside raw links (asterisk, can happen in links with params)-https://example.com/foo*bar*baz\n-https://example.com/foo*bar*baz
\n] _ line = 40, title = 'emphasis inside raw links (asterisk, can happen in links with params)', input = 'https://example.com/foo*bar*baz\n' expected = 'https://example.com/foo*bar*baz
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[5 of 31], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError __ test_linkify[48-emphasis inside raw links (underscore)-http://example.org/foo._bar_-_baz\n-http://example.org/foo._bar_-_baz
\n] ___ line = 48, title = 'emphasis inside raw links (underscore)', input = 'http://example.org/foo._bar_-_baz\n' expected = 'http://example.org/foo._bar_-_baz
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[4 of 33], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError _________ test_linkify[56-backticks inside raw links-https://example.com/foo`bar`baz\n-https://example.com/foo`bar`baz
\n] __________ line = 56, title = 'backticks inside raw links', input = 'https://example.com/foo`bar`baz\n' expected = 'https://example.com/foo`bar`baz
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[5 of 31], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError ____ test_linkify[64-links inside raw links-https://example.com/foo[123](456)bar\n-https://example.com/foo[123](456)bar
\n] ____ line = 64, title = 'links inside raw links', input = 'https://example.com/foo[123](456)bar\n' expected = 'https://example.com/foo[123](456)bar
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[5 of 36], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError _________________________________________ test_linkify[72-escapes not allowed at the start-\\https://example.com\n-\\https://example.com
\n] __________________________________________ line = 72, title = 'escapes not allowed at the start', input = '\\https://example.com\n', expected = '\\https://example.com
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[0 of 20], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError ____________________________________________ test_linkify[80-escapes not allowed at comma-https\\://example.com\n-https://example.com
\n] _____________________________________________ line = 80, title = 'escapes not allowed at comma', input = 'https\\://example.com\n', expected = 'https://example.com
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[5 of 20], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError ___________________ test_linkify[88-escapes not allowed at slashes-https:\\//aa.org https://bb.org\n-https://aa.org https://bb.org
\n] ___________________ line = 88, title = 'escapes not allowed at slashes', input = 'https:\\//aa.org https://bb.org\n', expected = 'https://aa.org https://bb.org
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[5 of 30], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError _______________________________________________ test_linkify[96-fuzzy link shouldn't match cc.org-https:/\\/cc.org\n-https://cc.org
\n] _______________________________________________ line = 96, title = "fuzzy link shouldn't match cc.org", input = 'https:/\\/cc.org\n', expected = 'https://cc.org
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[5 of 15], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError _ test_linkify[104-bold links (exclude markup of pairs from link tail)-**http://example.com/foobar**\n-\n] _ line = 104, title = 'bold links (exclude markup of pairs from link tail)', input = '**http://example.com/foobar**\n' expected = '\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[0 of 29], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError ______________________________ test_linkify[111-match links without protocol-www.example.org\n-\n] _______________________________ line = 111, title = 'match links without protocol', input = 'www.example.org\n', expected = '\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state =http:/example.com/
\n] _______________________________________________ line = 118, title = 'coverage, prefix not valid', input = 'http:/example.com/\n', expected = 'http:/example.com/
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[4 of 18], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError _ test_linkify[126-coverage, negative link level-[https://example.com](https://example.com)\n-\n] _ line = 126, title = 'coverage, negative link level', input = '[https://example.com](https://example.com)\n' expected = '\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[0 of 46], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError _ test_linkify[134-emphasis with '*', real link:-http://cdecl.ridiculousfish.com/?q=int+%28*f%29+%28float+*%29%3B\n-http://cdecl.ridiculousfish.com/?q=int+(*f)+(float+*)%3B
\n] _ line = 134, title = "emphasis with '*', real link:", input = 'http://cdecl.ridiculousfish.com/?q=int+%28*f%29+%28float+*%29%3B\n' expected = 'http://cdecl.ridiculousfish.com/?q=int+(*f)+(float+*)%3B
\n' @pytest.mark.parametrize( "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")), ) def test_linkify(line, title, input, expected): md = MarkdownIt().enable("linkify") md.options["linkify"] = True > text = md.render(input) tests/test_port/test_fixtures.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ markdown_it/main.py:291: in render return self.renderer.render(self.parse(src, env), self.options, env) markdown_it/main.py:276: in parse self.core.process(state) markdown_it/parser_core.py:45: in process rule(state) markdown_it/rules_core/inline.py:10: in inline state.md.inline.parse(token.content, state.md, state.env, token.children) markdown_it/parser_inline.py:143: in parse self.tokenize(state) markdown_it/parser_inline.py:123: in tokenize ok = rule(state, False) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = StateInline(pos=[4 of 64], token=0), silent = False def linkify(state: StateInline, silent: bool) -> bool: """Rule for identifying plain-text links.""" if not state.md.options.linkify: return False if state.linkLevel > 0: return False if not state.md.linkify: > raise ModuleNotFoundError("Linkify enabled but not installed.") E ModuleNotFoundError: Linkify enabled but not installed. markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError _ test_linkify[141-emphasis with '_', real link:-https://www.sell.fi/sites/default/files/elainlaakarilehti/tieteelliset_artikkelit/kahkonen_t._et_al.canine_pancreatitis-_review.pdf\n-\n] _ line = 141, title = "emphasis with '_', real link:" input = 'https://www.sell.fi/sites/default/files/elainlaakarilehti/tieteelliset_artikkelit/kahkonen_t._et_al.canine_pancreatitis-_review.pdf\n' expected = ' text = md.render(input)
tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:291: in render
return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:276: in parse
self.core.process(state)
markdown_it/parser_core.py:45: in process
rule(state)
markdown_it/rules_core/inline.py:10: in inline
state.md.inline.parse(token.content, state.md, state.env, token.children)
markdown_it/parser_inline.py:143: in parse
self.tokenize(state)
markdown_it/parser_inline.py:123: in tokenize
ok = rule(state, False)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
state = StateInline(pos=[5 of 131], token=0), silent = False
def linkify(state: StateInline, silent: bool) -> bool:
"""Rule for identifying plain-text links."""
if not state.md.options.linkify:
return False
if state.linkLevel > 0:
return False
if not state.md.linkify:
> raise ModuleNotFoundError("Linkify enabled but not installed.")
E ModuleNotFoundError: Linkify enabled but not installed.
markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError
_ test_linkify[148-emails-test@example.com\n\nmailto:test@example.com\n-\n\n] _
line = 148, title = 'emails', input = 'test@example.com\n\nmailto:test@example.com\n'
expected = '\n\n'
@pytest.mark.parametrize(
"line,title,input,expected",
read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
)
def test_linkify(line, title, input, expected):
md = MarkdownIt().enable("linkify")
md.options["linkify"] = True
> text = md.render(input)
tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:291: in render
return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:276: in parse
self.core.process(state)
markdown_it/parser_core.py:45: in process
rule(state)
markdown_it/rules_core/inline.py:10: in inline
state.md.inline.parse(token.content, state.md, state.env, token.children)
markdown_it/parser_inline.py:143: in parse
self.tokenize(state)
markdown_it/parser_inline.py:123: in tokenize
ok = rule(state, False)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
state = StateInline(pos=[4 of 16], token=0), silent = False
def linkify(state: StateInline, silent: bool) -> bool:
"""Rule for identifying plain-text links."""
if not state.md.options.linkify:
return False
if state.linkLevel > 0:
return False
if not state.md.linkify:
> raise ModuleNotFoundError("Linkify enabled but not installed.")
E ModuleNotFoundError: Linkify enabled but not installed.
markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError
_____________________ test_linkify[159-typorgapher should not break href-http://example.com/(c)\n-\n] _____________________
line = 159, title = 'typorgapher should not break href', input = 'http://example.com/(c)\n', expected = '\n'
@pytest.mark.parametrize(
"line,title,input,expected",
read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
)
def test_linkify(line, title, input, expected):
md = MarkdownIt().enable("linkify")
md.options["linkify"] = True
> text = md.render(input)
tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:291: in render
return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:276: in parse
self.core.process(state)
markdown_it/parser_core.py:45: in process
rule(state)
markdown_it/rules_core/inline.py:10: in inline
state.md.inline.parse(token.content, state.md, state.env, token.children)
markdown_it/parser_inline.py:143: in parse
self.tokenize(state)
markdown_it/parser_inline.py:123: in tokenize
ok = rule(state, False)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
state = StateInline(pos=[4 of 22], token=0), silent = False
def linkify(state: StateInline, silent: bool) -> bool:
"""Rule for identifying plain-text links."""
if not state.md.options.linkify:
return False
if state.linkLevel > 0:
return False
if not state.md.linkify:
> raise ModuleNotFoundError("Linkify enabled but not installed.")
E ModuleNotFoundError: Linkify enabled but not installed.
markdown_it/rules_inline/linkify.py:17: ModuleNotFoundError
______________________________________ test_linkify[166-before line-before\ngithub.com\n- before\ngithub.com before\ngithub.com github.com\nafter github.com\nafter before\ngithub.com\nafter before\ngithub.com\nafter before after before after google.com google.com url http://www.youtube.com/watch?v=5Jt5GEr4AYg. https://example.com/foo&bar https://example.com/foo*bar*baz http://example.org/foo._bar_-_baz https://example.com/foo`bar`baz https://example.com/foo[123](456)bar \\https://example.com https://example.com https://aa.org https://bb.org https://cc.org http:/example.com/
http://cdecl.ridiculousfish.com/?q=int+(*f)+(float+*)%3B
\n] - ModuleNotFoundError: Linkify enabled but not installed. FAILED tests/test_port/test_fixtures.py::test_linkify[141-emphasis with '_', real link:-https://www.sell.fi/sites/default/files/elainlaakarilehti/tieteelliset_artikkelit/kahkonen_t._et_al.canine_pancreatitis-_review.pdf\n-\n] - ModuleNotFoundError: Linkify enabled but not installed. FAILED tests/test_port/test_fixtures.py::test_linkify[148-emails-test@example.com\n\nmailto:test@example.com\n-\n\n] - ModuleNotFoundError: Linkify enabled but not installed. FAILED tests/test_port/test_fixtures.py::test_linkify[159-typorgapher should not break href-http://example.com/(c)\n-\n] - ModuleNotFoundError: Linkify enabled but not installed. FAILED tests/test_port/test_fixtures.py::test_linkify[166-before line-before\ngithub.com\n-before\ngithub.com
\n] - ModuleNotFoundError: Linkify enabled but not installed. FAILED tests/test_port/test_fixtures.py::test_linkify[175-after line-github.com\nafter\n-github.com\nafter
\n] - ModuleNotFoundError: Linkify enabled but not installed. FAILED tests/test_port/test_fixtures.py::test_linkify[184-before after lines-before\ngithub.com\nafter\n-before\ngithub.com\nafter
\n] - ModuleNotFoundError: Linkify enabled but not installed. FAILED tests/test_port/test_fixtures.py::test_linkify[195-before after lines with blank line-before\n\ngithub.com\n\nafter\n-before
\n\nafter
\n] - ModuleNotFoundError: Linkify enabled but not installed. FAILED tests/test_port/test_fixtures.py::test_linkify[208-Don't match escaped-google\\.com\n-google.com
\n] - ModuleNotFoundError: Linkify enabled but not installed. ```Most of the units complains about missing 'linkify` however only such module which I see on pypi is from 2009 https://pypi.org/project/linkify/
Describe the bug
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Reproduce the bug
Will drop in next comment.
List your environment
Here is list of installed modules in build env