Closed
Bug 575724
Opened 15 years ago
Closed 15 years ago
[k][questions] Feeds contain markup instead of HTML
Categories
(support.mozilla.org :: Questions, task, P2)
support.mozilla.org
Questions
Tracking
(Not tracked)
VERIFIED
FIXED
2.2
People
(Reporter: stephend, Assigned: jsocol)
References
()
Details
Attachments
(1 file)
672.37 KB,
image/png
|
Details |
For feeds of forum posts with Wiki markup, such as:
# one
# two
etc., which are turned into:
1. one
2. two
we show the # chars in the feed.
We need a design decision here as to which to display (raw vs. pretty-print)
Assignee | ||
Updated•15 years ago
|
Target Milestone: --- → 2.2
Assignee | ||
Updated•15 years ago
|
Summary: [k][questions][ddn] → [k][questions][ddn] Feeds contain markup instead of HTML
Whiteboard: [ddn]
Comment 1•15 years ago
|
||
Is the description pure text? If so, pick the first one of these that seems implementable in reasonable time:
1. Translate (the most common) wiki markup into its closest plaintext equivalent.
In the case above, replace each "#" with "1.", "2.", etc. (w/o a line break).
2. Strip the wiki markup. The description presumably removes lines and paras,
so the description should be readable w/o the associated markup.
3. Leave it as is. Someone following the RSS feed probably has a solid enough
understanding to recognize and interpret the raw markup.
Assignee | ||
Comment 2•15 years ago
|
||
(2) is the first one that's implementable in a reasonable amount of time: use content_parsed and strip_tags. (1) is a rabbit hole that ends with building a new, worse wiki parser.
Comment 3•15 years ago
|
||
Possibly dumb question: couldn't the actual mediawiki->html parser be used to generate the html, rather than choosing between plain text or raw markup?
Assignee | ||
Comment 4•15 years ago
|
||
Yes, that's really the choice (except for titles) I think we got a little side tracked. How about: HTML for item content, stripped plain text for item title?
Comment 5•15 years ago
|
||
Sounds like the best solution!
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → erik
Assignee | ||
Updated•15 years ago
|
Component: Forum → Questions
Assignee | ||
Updated•15 years ago
|
Severity: minor → normal
Priority: -- → P2
Summary: [k][questions][ddn] Feeds contain markup instead of HTML → [k][questions] Feeds contain markup instead of HTML
Whiteboard: [ddn]
Assignee | ||
Updated•15 years ago
|
Assignee: erik → james
Assignee | ||
Comment 6•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•15 years ago
|
Assignee | ||
Comment 7•15 years ago
|
||
Note that this applies to both the feed of questions and the per-question feed of answers, so good URLs to test:
https://support-stage.mozilla.com/en-US/questions/8/feed
https://support-stage.mozilla.com/en-US/questions/feed
Reporter | ||
Comment 8•15 years ago
|
||
Verified FIXED; there's a spinoff, bug 582743.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•