Switch to unified view
a/Allura/allura/lib/search.py | b/Allura/allura/lib/search.py | ||
---|---|---|---|
... |
... |
||
63 | def find_shortlinks(text): |
63 | def find_shortlinks(text): |
64 | md = markdown.Markdown( |
64 | md = markdown.Markdown( |
65 | extensions=['codehilite', ForgeExtension(), 'tables'], |
65 | extensions=['codehilite', ForgeExtension(), 'tables'], |
66 | output_format='html4') |
66 | output_format='html4') |
67 | md.convert(text) |
67 | md.convert(text) |
68 | link_index = md.postprocessors['forge'].parent.alinks |
68 | link_index = md.treeprocessors['links'].alinks |
69 | return [ link for link in link_index.itervalues() if link is not None]
|
69 | return [ link for link in link_index if link is not None] |