Fix autolinkification in Zephyr mirrored content.

Apparently the "inline" treeprocessor is what runs the inline
patterns.  Also re-enable the rewriting-to-https support.

(imported from commit 2fde2c1f15217a784f26b16db25ee745f424f2f0)
This commit is contained in:
Tim Abbott
2014-02-07 16:05:19 -05:00
parent 72ee636571
commit 4891da83ad
2 changed files with 9 additions and 4 deletions

View File

@@ -386,4 +386,10 @@ class BugdownTest(TestCase):
converted,
"<p>* test</p>",
)
msg = "https://lists.debian.org/debian-ctte/2014/02/msg00173.html"
converted = bugdown.convert(msg, "mit.edu/zephyr_mirror")
self.assertEqual(
converted,
'<p><a href="https://lists.debian.org/debian-ctte/2014/02/msg00173.html" target="_blank" title="https://lists.debian.org/debian-ctte/2014/02/msg00173.html">https://lists.debian.org/debian-ctte/2014/02/msg00173.html</a></p>',
)