Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task]: Support markup. #15129

Closed
2 tasks
RokeJulianLockhart opened this issue Oct 31, 2024 · 8 comments
Closed
2 tasks

[Task]: Support markup. #15129

RokeJulianLockhart opened this issue Oct 31, 2024 · 8 comments
Assignees
Labels
needs:info repository:addons-frontend Issue relating to addons-frontend

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Oct 31, 2024

Description

I want (ideally CommonMark, or at least HTML5) markup to render in reviews and add-on descriptions. An example of when fenced code blocks would have been useful to me is noting issues with code to the developer, and an example of when inline code would have been useful is semantically referring to a subdomain in RegEx form.

Of course, italics are also necessary when highlighting something in a paragraph.

Acceptance Criteria

Milestones/checkpoints

Checks

  • If I have identified that the work is specific to a repository, I have removed "repository:addons-server" or "repository:addons-frontend"

┆Issue is synchronized with this Jira Task

@RokeJulianLockhart RokeJulianLockhart added needs:info repository:addons-server Issue relating to addons-server repository:addons-frontend Issue relating to addons-frontend labels Oct 31, 2024
@RokeJulianLockhart

This comment was marked as outdated.

@abyrne-moz
Copy link

Thank you for your suggestion! I agree that markup would be valuable to support on our add-ons listing pages. I have created a new issue for the team to capture these requirements in more detail.

Add-on ratings are designed for users rate the quality of the extension, and provide some words to explain why they chose that rating. It is not designed for bug reports, and we encourage developers to link to a separate external support site for that.
image

Providing markup support in the ratings increases the risk that these fields become used for spam or other nefarious reasons.

@abyrne-moz abyrne-moz removed the repository:addons-server Issue relating to addons-server label Nov 6, 2024
@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Nov 6, 2024

Thank you for your suggestion! I agree that markup would be valuable to support on our add-ons listing pages. I have created a #15145 for the team to capture these requirements in more detail.

@abyrne-moz, thanks, lots! I'm always glad to see an issue broken into smaller, trackable issues.

Providing markup support in the ratings increases the risk that these fields become used for spam or other nefarious reasons.

The input form is labelled as a review form. Additionally, it appears to accept an unlimited amount of text. These are both significant benefits, because it means that users can provide higher quality reviews. However, without basic italicisation and table support, it can become tedious to write them.

Would not a subset of the already fairly restrictive CommonMark be acceptable? Currently, tables, italicisations, bolding, and hyperlink URIs are rendered in plain text from. They can remain so with users familiar with Markdown markup understanding them, but to regular users, it must appear strange – especially URIs being unsanitised yet not encapsulated within a hyperlink.

If what you state about your team's intention for the review field is true, then I suggest that you limit its length to a word count and relabel the form to "comment" (or similar), else it shall continue to be used for full reviews, rather than mere comments. However, it would be a significant shame.

@abyrne-moz
Copy link

abyrne-moz commented Nov 6, 2024

Thank you, I appreciate the feedback. We aim to strike the right balance between enabling add-on users to provide detailed reviews that will be useful for others to decide if they should install the add-on, whilst not encouraging it to be used as a support forum or feature request platform so choosing a character limit will be difficult. Additionally, if we render HTML in the reviews, especially URLs, we quickly see the review system get targeted by SEO spammers attempting to manipulate search rankings.

@RokeJulianLockhart
Copy link
Author

#15129 (comment)

@abyrne-moz, how about the most basic CommonMark markup, like italicised and bold text, then?

Otherwise, I do understand what you currently do - allowing URIs but not encapsulating them in <a href=""> tags, considering that an SEO crawler shall probably not bother to parse the plaintext of the page to extract the links if they're not semantic.

@abyrne-moz
Copy link

In your opinion, what value would allowing Bold and Italicised text bring to the ratings for end users making a decision about whether or not to install the add-on?

@RokeJulianLockhart
Copy link
Author

#15129 (comment)

@abyrne-moz, it doesn't serve a particularly different purpose in this context to most else. Specifically, in some sentences, a section may be of importance in comparison to its surrounding clause. To demonstrate that, a user currently either CAPITALISES it or uses plain-text Markdown syntax (* or **) in lieu of a rendering engine. For the result instead to be semantic, having those basic formatting aids be supported would be useful for screen readers and non-technical readers alike.

@abyrne-moz
Copy link

I've consulted with our product designers on this, and researched some other popular ratings platforms to see if they support formatting. We have come to the same conclusion, that the addition of markdown style formatting support would bring a low return on the engineering investment. At this moment we won't be including this functionality on AMO in the ratings area.
Thanks again for suggesting it though, I really do appreciate it!

@abyrne-moz abyrne-moz closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:info repository:addons-frontend Issue relating to addons-frontend
Projects
None yet
Development

No branches or pull requests

2 participants