Repository navigation
Enable fetching of source strings for Markdown fields in API for Pinguino - #25709
Merged
Merged
Conversation
chrstinalin
force-pushed
the
#16513-markdown
branch
from
October 29, 2026 15:57
5e9812e to
8e7e414
Compare
chrstinalin
marked this pull request as ready for review
October 29, 2026 15:57
diox
approved these changes
Oct 30, 2026
Member
|
Update the changelog in the API docs too |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes mozilla/addons#16513
Description
Surfaces the unsanitized source of markdown-compatible fields in add-ons through the API, limited to authors.
Testing
See here for allowed Markdown. Anything outside of these is sanitized.
API
GETs from:
/api/v5/addons/addon//api/v5/addons/addon/(int:id|string:slug|string:guid)//api/v5/addons/addon/(int:addon_id|string:addon_slug|string:addon_guid)/versions//api/v5/addons/addon/(int:addon_id|string:addon_slug|string:addon_guid)/versions/(int:id|string:version_number)//api/v5/addons/addon/(int:id|string:slug|string:guid)/eula_policy/with
show_source=truereturn the Markdown source of HTML fields.Pinguino
On the listing & details section of an add-on:
description,developer_comments,eula, andprivacy_policyfields render the sanitized HTML when not in edit mode.Checklist
#ISSUENUMat the top of your PR to an existing open issue in the mozilla/addons repository.