allura
リビジョン | c04d3ff65f34f66c937b1ef8e046c5200bce72da (tree) |
---|---|
日時 | 2010-06-22 01:13:45 |
作者 | Rick Copeland <rcopeland@geek...> |
コミッター | Rick Copeland |
[#616] - Quit auto-linking WikiWords
@@ -69,10 +69,7 @@ class Globals(object): | ||
69 | 69 | extensions=['codehilite', ForgeExtension(), 'tables'], |
70 | 70 | output_format='html4', |
71 | 71 | safe_mode='escape') |
72 | - self.markdown_wiki = markdown.Markdown( | |
73 | - extensions=['codehilite', ForgeExtension(wiki=True), 'tables'], | |
74 | - output_format='html4', | |
75 | - safe_mode='escape') | |
72 | + self.markdown_wiki = self.markdown # [#616] | |
76 | 73 | # self.markdown.stripTopLevelTags = self.markdown_wiki.stripTopLevelTags=False |
77 | 74 | |
78 | 75 | # Setup OEmbed |
@@ -30,8 +30,8 @@ def test_markdown(): | ||
30 | 30 | assert '<a href=' in g.markdown.convert('# Foo!\n[Root]') |
31 | 31 | assert '<a href=' not in g.markdown.convert('# Foo!\n[Rooted]') |
32 | 32 | assert '<a href=' in g.markdown.convert('This is http://sf.net') |
33 | - assert '<a href=' in g.markdown_wiki.convert('This is a WikiPage') | |
34 | - assert '<a href=' not in g.markdown_wiki.convert('This is a WIKIPAGE') | |
33 | + # assert '<a href=' in g.markdown_wiki.convert('This is a WikiPage') | |
34 | + # assert '<a href=' not in g.markdown_wiki.convert('This is a WIKIPAGE') | |
35 | 35 | assert '<br' in g.markdown.convert('Multi\nLine'), g.markdown.convert('Multi\nLine') |
36 | 36 | assert '<br' not in g.markdown.convert('Multi\n\nLine') |
37 | 37 | r = g.markdown.convert('[[projects]]') |