Support Markdown "stack overflow" style hyperlinks markup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
Stack Overflow has a rather nifty way of specifying a hyperlink in a safe manner. As an example, take the text from bug 391777; on SO the following snippet would be written thus:
Upstream has been notified of the bug and [fixed it][1] in the [git tree][2]. Attached is a debdiff to fix this issue in Ubuntu 9.04, which I have personally tested and verified that it works. This change will be in libwnck that is distributed with GNOME 2.28, but it would be nice if this change is also applied and released in Ubuntu 9.04 with GNOME 2.26.
At the end of the text with the links in it are the link definitions:
[1]: http://
[2]: http://
The parser would then change the text in the paragraph to have hyperlinks for HTML views, and preserve the real text for plain-text representations such as email messages/
This would make it possible to do things such as make references to other important information in a way that is non-intrusive as well as intuitive when reading a bug report that depends on external information.
Related branches
- Raphaël Badin (community): Approve
-
Diff: 225 lines (+90/-4)7 files modifiedlib/lp/app/browser/stringformatter.py (+26/-1)
lib/lp/app/browser/tests/test_stringformatter.py (+50/-0)
lib/lp/registry/browser/person.py (+3/-1)
lib/lp/registry/templates/product-index.pt (+3/-2)
lib/lp/services/features/flags.py (+6/-0)
setup.py (+1/-0)
versions.cfg (+1/-0)
- Andrey Fedoseev (community): Approve
-
Diff: 191 lines (+83/-15)4 files modifiedlib/lp/app/browser/stringformatter.py (+25/-7)
lib/lp/app/browser/tests/test_stringformatter.py (+54/-6)
requirements/launchpad.txt (+2/-1)
setup.cfg (+2/-1)
affects: | launchpad → launchpad-foundations |
Changed in launchpad-foundations: | |
importance: | Undecided → Low |
status: | New → Triaged |
tags: | added: feature |
summary: |
- Support "stack overflow" style hyperlinks + Support "stack overflow" style hyperlinks markup |
summary: |
- Support "stack overflow" style hyperlinks markup + Support Markdown "stack overflow" style hyperlinks markup |
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Martin Pool (mbp) |
tags: | added: markdown |
Changed in launchpad: | |
assignee: | Martin Pool (mbp) → nobody |
status: | In Progress → Triaged |
If we're going to allow a special syntax for hyperlinks, how about using a syntax more widely known among Launchpad users, such as MoinMoin or even Markdown?